From cd54cbfe7d0b5c2fa29bb99cd21e0f0efe100d92 Mon Sep 17 00:00:00 2001 From: samarroy84 Date: Tue, 4 Nov 2025 16:14:17 +0600 Subject: [PATCH] fix Reports - Pay with business account is shown instead of Pay with workspace on Reports > Reports --- .../Search/ActionCell.tsx | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/src/components/SelectionListWithSections/Search/ActionCell.tsx b/src/components/SelectionListWithSections/Search/ActionCell.tsx index e53a40dd7d88..7d54d6bd291a 100644 --- a/src/components/SelectionListWithSections/Search/ActionCell.tsx +++ b/src/components/SelectionListWithSections/Search/ActionCell.tsx @@ -5,6 +5,7 @@ import Badge from '@components/Badge'; import Button from '@components/Button'; import * as Expensicons from '@components/Icon/Expensicons'; import type {PaymentMethod} from '@components/KYCWall/types'; +import {SearchScopeProvider} from '@components/Search/SearchScopeProvider'; import type {PaymentData} from '@components/Search/types'; import SettlementButton from '@components/SettlementButton'; import useLocalize from '@hooks/useLocalize'; @@ -150,24 +151,26 @@ function ActionCell({ if (action === CONST.SEARCH.ACTION_TYPES.PAY) { return ( - confirmPayment(type as ValueOf, payAsBusiness, methodID, paymentMethod)} - style={[styles.w100]} - wrapperStyle={[styles.w100]} - shouldShowPersonalBankAccountOption={!policyID && !iouReport?.policyID} - isDisabled={isOffline} - isLoading={isLoading} - onlyShowPayElsewhere={shouldOnlyShowElsewhere} - /> + + confirmPayment(type as ValueOf, payAsBusiness, methodID, paymentMethod)} + style={[styles.w100]} + wrapperStyle={[styles.w100]} + shouldShowPersonalBankAccountOption={!policyID && !iouReport?.policyID} + isDisabled={isOffline} + isLoading={isLoading} + onlyShowPayElsewhere={shouldOnlyShowElsewhere} + /> + ); }