Skip to content

Commit

Permalink
Merge pull request #46044 from bernhardoj/fix/39171-approve-button-sh…
Browse files Browse the repository at this point in the history
…ows-even-when-approval-is-disabled

Don't show approve button when approval is disabled
  • Loading branch information
stitesExpensify authored Jul 29, 2024
2 parents bfb6cc5 + 50ef70c commit 127b751
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6628,9 +6628,8 @@ function canApproveIOU(
return false;
}

const isOnInstantSubmitPolicy = PolicyUtils.isInstantSubmitEnabled(policy);
const isOnSubmitAndClosePolicy = PolicyUtils.isSubmitAndClose(policy);
if (isOnInstantSubmitPolicy && isOnSubmitAndClosePolicy) {
if (isOnSubmitAndClosePolicy) {
return false;
}

Expand Down

0 comments on commit 127b751

Please sign in to comment.