Skip to content

Commit b3e5068

Browse files
committed
fix: update split style condition
1 parent 3024410 commit b3e5068

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/SettlementButton/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ function SettlementButton({
298298

299299
if (isInvoiceReport) {
300300
const isCurrencySupported = isCurrencySupportedForDirectReimbursement(currency as CurrencyType);
301+
console.log({currency})
301302
const getInvoicesOptions = (payAsBusiness: boolean) => {
302303
return [
303304
...(isCurrencySupported ? getPaymentSubitems(payAsBusiness) : []),
@@ -540,7 +541,7 @@ function SettlementButton({
540541
return false;
541542
});
542543

543-
const shouldUseSplitButton = hasPreferredPaymentMethod || !!lastPaymentPolicy || isInvoiceReport || (isExpenseReportUtil(iouReport) && hasIntentToPay);
544+
const shouldUseSplitButton = hasPreferredPaymentMethod || !!lastPaymentPolicy || ((isInvoiceReport || isExpenseReportUtil(iouReport)) && hasIntentToPay);
544545

545546
return (
546547
<KYCWall

0 commit comments

Comments
 (0)