diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-09 14:16:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-09 14:16:28 -0300 |
commit | 78b056a0b1613ef19d1d72c17fd256c2e86e6774 (patch) | |
tree | 6bd9b487f6e935f5192c8007be3a313f099bcdda /packages/taler-wallet-webextension/src/components | |
parent | ff49e3477e155b94e752c516cf58fdea1ca19d54 (diff) | |
download | wallet-core-78b056a0b1613ef19d1d72c17fd256c2e86e6774.tar.xz |
remove listener on unload
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/PendingTransactions.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx index 126c82f88..05995395b 100644 --- a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx +++ b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx @@ -36,9 +36,12 @@ export function PendingTransactions({ goToTransaction }: Props): VNode { const state = useAsyncAsHook(wxApi.getTransactions); useEffect(() => { - wxApi.onUpdateNotification([NotificationType.WithdrawGroupFinished], () => { - state?.retry(); - }); + return wxApi.onUpdateNotification( + [NotificationType.WithdrawGroupFinished], + () => { + state?.retry(); + }, + ); }); const transactions = |