Skip to content

Commit 471d59f

Browse files
fix prettier
1 parent 25f4e71 commit 471d59f

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,10 +2403,9 @@ function isPayer(session: OnyxEntry<Session>, iouReport: OnyxEntry<Report>, only
24032403
// if there is a manager assigned we need to check if user is admin and manager to fix issue https://github.com/Expensify/App/issues/64825
24042404
if (iouReport?.managerID) {
24052405
return isAdmin && isManager;
2406-
}
2406+
}
24072407
// If we get here without a reimburser only show the pay button if we are the admin.
24082408
return isAdmin;
2409-
24102409
}
24112410

24122411
// If we are the reimburser and the report is approved or we are the manager then we can pay it.

src/libs/actions/IOU.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9452,9 +9452,7 @@ function getIOUReportActionToApproveOrPay(chatReport: OnyxEntry<OnyxTypes.Report
94529452
// This will be fixed as part of https://github.com/Expensify/Expensify/issues/507850
94539453
// eslint-disable-next-line deprecation/deprecation
94549454
const policy = getPolicy(iouReport?.policyID);
9455-
94569455
const shouldShowSettlementButton = canIOUBePaid(iouReport, chatReport, policy) || canApproveIOU(iouReport, policy);
9457-
94589456
return action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && shouldShowSettlementButton && !isDeletedAction(action);
94599457
});
94609458
}

0 commit comments

Comments
 (0)