Skip to content

Commit

Permalink
Remove unnecessary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Aug 16, 2024
1 parent ba6a109 commit 0214b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,7 @@ function canEditFieldOfMoneyRequest(reportAction: OnyxInputOrEntry<ReportAction>
return false;
}

const policy = getPolicy(moneyRequestReport?.policyID ?? '');
const policy = getPolicy(moneyRequestReport?.policyID);
const isAdmin = isExpenseReport(moneyRequestReport) && policy?.role === CONST.POLICY.ROLE.ADMIN;
const isManager = isExpenseReport(moneyRequestReport) && currentUserAccountID === moneyRequestReport?.managerID;

Expand Down

0 comments on commit 0214b3f

Please sign in to comment.