diff options
author | Sebastian <sebasjm@gmail.com> | 2023-06-02 14:26:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-06-02 14:26:28 -0300 |
commit | 1961f4744ca0db4666a2df4335c768ed86fc4e2f (patch) | |
tree | 26d3aa5d7a9d05c84eeb3176061de1a49cf4c5f1 /packages/taler-wallet-webextension/src/cta/Payment | |
parent | 9853f54201cc4c563b7f3b51564eeab54862a223 (diff) | |
download | wallet-core-1961f4744ca0db4666a2df4335c768ed86fc4e2f.tar.xz |
remove deprecated notifications, implement isOffline
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/state.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/test.ts | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/state.ts b/packages/taler-wallet-webextension/src/cta/Payment/state.ts index 586ef377c..4468438d1 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/state.ts @@ -54,7 +54,7 @@ export function useComponentState({ useEffect( () => api.listener.onUpdateNotification( - [NotificationType.CoinWithdrawn], + [NotificationType.TransactionStateTransition], hook?.retry, ), [hook], diff --git a/packages/taler-wallet-webextension/src/cta/Payment/test.ts b/packages/taler-wallet-webextension/src/cta/Payment/test.ts index 655f21eb9..e2935fc4e 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/test.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/test.ts @@ -541,7 +541,9 @@ describe("Payment CTA states", () => { // expect(r.totalFees).deep.equal(Amounts.parseOrThrow("USD:1")); expect(state.payHandler.onClick).not.undefined; - handler.notifyEventFromWallet(NotificationType.CoinWithdrawn); + handler.notifyEventFromWallet( + NotificationType.TransactionStateTransition, + ); }, (state) => { if (state.status !== "ready") expect.fail(); |