Skip to content

Commit c84893f

Browse files
committed
fix approvals showing up when they shouldnt
1 parent 0f09701 commit c84893f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/SearchUIUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,10 @@ function createTypeMenuSections(session: OnyxTypes.Session | undefined, hasCardF
12851285
return false;
12861286
}
12871287

1288+
if (policy.approvalMode === CONST.POLICY.APPROVAL_MODE.OPTIONAL) {
1289+
return false;
1290+
}
1291+
12881292
const isPolicyApprover = policy.approver === email;
12891293
const isSubmittedTo = Object.values(policy.employeeList ?? {}).some((employee) => {
12901294
return employee.submitsTo === email || employee.forwardsTo === email;

0 commit comments

Comments
 (0)