summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup/BalancePage.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/popup/BalancePage.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
index 6a31fe238..cdf507cb5 100644
--- a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
+++ b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
@@ -44,9 +44,12 @@ export function BalancePage({
const state = useAsyncAsHook(wxApi.getBalance);
useEffect(() => {
- wxApi.onUpdateNotification([NotificationType.WithdrawGroupFinished], () => {
- state?.retry();
- });
+ return wxApi.onUpdateNotification(
+ [NotificationType.WithdrawGroupFinished],
+ () => {
+ state?.retry();
+ },
+ );
});
const balances = !state || state.hasError ? [] : state.response.balances;