From 1961f4744ca0db4666a2df4335c768ed86fc4e2f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 2 Jun 2023 14:26:28 -0300 Subject: remove deprecated notifications, implement isOffline --- packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src/cta/InvoicePay') diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts index 10f1ee849..c6512cd12 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts @@ -49,7 +49,7 @@ export function useComponentState({ useEffect(() => api.listener.onUpdateNotification( - [NotificationType.CoinWithdrawn], + [NotificationType.TransactionStateTransition], hook?.retry, ), ); @@ -123,7 +123,9 @@ export function useComponentState({ raw, goToWalletManualWithdraw, summary, - expiration: expiration ? AbsoluteTime.fromProtocolTimestamp(expiration) : undefined, + expiration: expiration + ? AbsoluteTime.fromProtocolTimestamp(expiration) + : undefined, }; if (!foundBalance) { -- cgit v1.2.3