Skip to content

Commit 47a20c2

Browse files
committed
chore: add scheduleFundButtonReset to dep array
1 parent 0842705 commit 47a20c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/onchainkit/src/fund/hooks/useFundCardSetupOnrampEventListeners.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const useFundCardSetupOnrampEventListeners = () => {
3535
scheduleFundButtonReset();
3636
}
3737
},
38-
[updateLifecycleStatus, setSubmitButtonState],
38+
[updateLifecycleStatus, setSubmitButtonState, scheduleFundButtonReset],
3939
);
4040

4141
const handleOnrampSuccess = useCallback(
@@ -48,7 +48,7 @@ export const useFundCardSetupOnrampEventListeners = () => {
4848
setSubmitButtonState('success');
4949
scheduleFundButtonReset();
5050
},
51-
[updateLifecycleStatus, setSubmitButtonState],
51+
[updateLifecycleStatus, setSubmitButtonState, scheduleFundButtonReset],
5252
);
5353

5454
const handleOnrampExit = useCallback(() => {

0 commit comments

Comments
 (0)