Skip to content

Commit 578006f

Browse files
authored
Merge pull request #47560 from Expensify/youssef_fix_bad_param
2 parents 9940e99 + 0214b3f commit 578006f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/ReportUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,7 @@ function canEditFieldOfMoneyRequest(reportAction: OnyxInputOrEntry<ReportAction>
30033003
return false;
30043004
}
30053005

3006-
const policy = getPolicy(moneyRequestReport?.reportID ?? '-1');
3006+
const policy = getPolicy(moneyRequestReport?.policyID);
30073007
const isAdmin = isExpenseReport(moneyRequestReport) && policy?.role === CONST.POLICY.ROLE.ADMIN;
30083008
const isManager = isExpenseReport(moneyRequestReport) && currentUserAccountID === moneyRequestReport?.managerID;
30093009

0 commit comments

Comments
 (0)