From 832ff2fb1c378bfab1f97b7fe025b76ee940d906 Mon Sep 17 00:00:00 2001 From: bing gao Date: Mon, 17 Jul 2023 12:58:02 -0700 Subject: [PATCH] hide edit button when status change to complete --- src/frontend/src/components/public/PIASubHeader/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/public/PIASubHeader/index.tsx b/src/frontend/src/components/public/PIASubHeader/index.tsx index 9d5aac482..851f72e5a 100644 --- a/src/frontend/src/components/public/PIASubHeader/index.tsx +++ b/src/frontend/src/components/public/PIASubHeader/index.tsx @@ -182,8 +182,13 @@ function PIASubHeader({ const showSaveAndEditButton = () => { // we may revisit this part later for standard PIA if (mode === 'view' && pia.status === PiaStatuses.CPO_REVIEW) return false; - else if (mode === 'view' && pia.status === PiaStatuses.FINAL_REVIEW) + else if ( + mode === 'view' && + (pia.status === PiaStatuses.FINAL_REVIEW || + pia.status === PiaStatuses.COMPLETE) + ) return false; + return true; }; const showSubmitButton = () => {