Skip to content

Commit 9cc5de9

Browse files
committed
edit comment
1 parent f059414 commit 9cc5de9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,12 +3776,12 @@ function isWorkspacePayer(memberLogin: string, policy: OnyxEntry<Policy>): boole
37763776
const isAdmin = policy?.employeeList?.[memberLogin]?.role === CONST.POLICY.ROLE.ADMIN;
37773777
if (isPaidGroupPolicyPolicyUtils(policy)) {
37783778
if (policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES) {
3779-
// If we get here without a reimburser only show the pay button if we are the admin.
3779+
// If we get here without a reimburser only admin is the payer.
37803780
if (!policy?.achAccount?.reimburser) {
37813781
return isAdmin;
37823782
}
37833783

3784-
// If we are the reimburser and the report is approved or we are the manager then we can pay it.
3784+
// If we are the reimburser then we are the payer.
37853785
const isReimburser = memberLogin === policy?.achAccount?.reimburser;
37863786
return isReimburser;
37873787
}

0 commit comments

Comments
 (0)