Skip to content

Commit

Permalink
Merge pull request Expensify#42812 from abzokhattab/removing-openwall…
Browse files Browse the repository at this point in the history
…etpage-from-settlementbutton

Removing the openWalletPage call from the SettlementButton component
  • Loading branch information
mountiny authored Jun 10, 2024
2 parents 5c86b72 + 75d8f1e commit 66cd707
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/SettlementButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useEffect, useMemo} from 'react';
import React, {useMemo} from 'react';
import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
Expand All @@ -8,7 +8,6 @@ import * as ReportUtils from '@libs/ReportUtils';
import playSound, {SOUNDS} from '@libs/Sound';
import * as BankAccounts from '@userActions/BankAccounts';
import * as IOU from '@userActions/IOU';
import * as PaymentMethods from '@userActions/PaymentMethods';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Route} from '@src/ROUTES';
Expand Down Expand Up @@ -144,10 +143,6 @@ function SettlementButton({
const {translate} = useLocalize();
const {isOffline} = useNetwork();

useEffect(() => {
PaymentMethods.openWalletPage();
}, []);

const session = useSession();
const chatReport = ReportUtils.getReport(chatReportID);
const isInvoiceReport = (!isEmptyObject(iouReport) && ReportUtils.isInvoiceReport(iouReport)) || false;
Expand Down

0 comments on commit 66cd707

Please sign in to comment.