Skip to content

Commit 49ec44f

Browse files
committed
fix: lint
1 parent dea7d64 commit 49ec44f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/SettlementButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function SettlementButton({
123123
const hasMultiplePolicies = !isExpenseReport && activeAdminPolicies.length > 1;
124124
const lastPaymentMethodRef = useRef(lastPaymentMethod);
125125
const formattedPaymentMethods = formatPaymentMethods(bankAccountList, fundList, styles);
126-
const hasIntentToPay = (formattedPaymentMethods.length === 1 && !isExpenseReport || !!policy?.achAccount) && !lastPaymentMethod;
126+
const hasIntentToPay = ((formattedPaymentMethods.length === 1 && isIOUReport(iouReport)) || !!policy?.achAccount) && !lastPaymentMethod;
127127

128128
useEffect(() => {
129129
if (isLoadingLastPaymentMethod) {

src/libs/ReportUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4566,7 +4566,7 @@ function getReportPreviewMessage(
45664566
}
45674567

45684568
const containsNonReimbursable = hasNonReimbursableTransactions(report.reportID);
4569-
const {totalDisplaySpend: totalAmount, reimbursableSpend} = getMoneyRequestSpendBreakdown(report);
4569+
const {totalDisplaySpend: totalAmount} = getMoneyRequestSpendBreakdown(report);
45704570

45714571
const parentReport = getParentReport(report);
45724572
const policyName = getPolicyName({report: parentReport ?? report, policy});

0 commit comments

Comments
 (0)