Skip to content

Commit 66cd707

Browse files
authored
Merge pull request Expensify#42812 from abzokhattab/removing-openwalletpage-from-settlementbutton
Removing the openWalletPage call from the SettlementButton component
2 parents 5c86b72 + 75d8f1e commit 66cd707

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/SettlementButton.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useEffect, useMemo} from 'react';
1+
import React, {useMemo} from 'react';
22
import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native';
33
import type {OnyxEntry} from 'react-native-onyx';
44
import {withOnyx} from 'react-native-onyx';
@@ -8,7 +8,6 @@ import * as ReportUtils from '@libs/ReportUtils';
88
import playSound, {SOUNDS} from '@libs/Sound';
99
import * as BankAccounts from '@userActions/BankAccounts';
1010
import * as IOU from '@userActions/IOU';
11-
import * as PaymentMethods from '@userActions/PaymentMethods';
1211
import CONST from '@src/CONST';
1312
import ONYXKEYS from '@src/ONYXKEYS';
1413
import type {Route} from '@src/ROUTES';
@@ -144,10 +143,6 @@ function SettlementButton({
144143
const {translate} = useLocalize();
145144
const {isOffline} = useNetwork();
146145

147-
useEffect(() => {
148-
PaymentMethods.openWalletPage();
149-
}, []);
150-
151146
const session = useSession();
152147
const chatReport = ReportUtils.getReport(chatReportID);
153148
const isInvoiceReport = (!isEmptyObject(iouReport) && ReportUtils.isInvoiceReport(iouReport)) || false;

0 commit comments

Comments
 (0)