Skip to content

Commit c5e03f1

Browse files
author
Saagar Takhi
committed
Refactors PaymentInfo/index.tsx: removes dependency from useEffect to make it equivalent to componentDidMount
1 parent c73567f commit c5e03f1

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/common/Modals/PreferencesModal/PaymentInfo

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/common/Modals/PreferencesModal/PaymentInfo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const PaymentInfo: FunctionComponent = () => {
2121

2222
useEffect(() => {
2323
paymentDetailsRequested();
24-
}, [paymentDetailsRequested]);
24+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
2525

2626
const updatePaymentDetails = useCallback(
2727
({ token }) => {

0 commit comments

Comments
 (0)