Skip to content

Commit

Permalink
Merge pull request #1573 from bcgov/UTOPIA-1395-edit
Browse files Browse the repository at this point in the history
[UTOPIA-1395] Selected program area roles not visible when partially signed in Final Review
  • Loading branch information
JieunSon96 authored Sep 20, 2023
2 parents 042770f + f2f365e commit 5a9fbb3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ const DisplayProgramArea = (props: IDisplayProgramAreaProps) => {
const viewMode = (reviewerRole: string) => {
const reviewerRoleAcknowledged = Object(props.pia?.review?.programArea)
?.reviews?.[reviewerRole]?.isAcknowledged;
if (canEditProgramAreaReview || !reviewerRoleAcknowledged) return false;

if (reviewerRoleAcknowledged) return true;
if (canEditProgramAreaReview) return false;

// if selectedRoles is null means none of selectedRole got reviewed so return true
// otherwise loop all the role in reviews part to see if the current user already did review
Expand Down

0 comments on commit 5a9fbb3

Please sign in to comment.