diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-16 16:04:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-16 16:05:13 -0300 |
commit | 1a63d56bfdd091cc7aefdf1e25f3a074bfdf5e0e (patch) | |
tree | 7255cf4a5b51af4807e2a01a370497413a78968f /packages/taler-wallet-webextension/src/cta/Refund/state.ts | |
parent | 53164dc47b1138235a0c797affaa6fb37ea43239 (diff) | |
download | wallet-core-1a63d56bfdd091cc7aefdf1e25f3a074bfdf5e0e.tar.xz |
fix #7411, also making the backup payment visible
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Refund/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Refund/state.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts b/packages/taler-wallet-webextension/src/cta/Refund/state.ts index 65a895fc3..94c5567d6 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Refund/state.ts @@ -29,13 +29,17 @@ export function useComponentState( const info = useAsyncAsHook(async () => { if (!talerRefundUri) throw Error("ERROR_NO-URI-FOR-REFUND"); - const refund = await api.wallet.call(WalletApiOperation.PrepareRefund, { talerRefundUri }); + const refund = await api.wallet.call(WalletApiOperation.PrepareRefund, { + talerRefundUri, + }); return { refund, uri: talerRefundUri }; }); - useEffect(() => api.listener.onUpdateNotification( - [NotificationType.RefreshMelted], - info?.retry) + useEffect(() => + api.listener.onUpdateNotification( + [NotificationType.RefreshMelted], + info?.retry, + ), ); if (!info) { @@ -52,7 +56,7 @@ export function useComponentState( const doAccept = async (): Promise<void> => { const res = await api.wallet.call(WalletApiOperation.ApplyRefund, { - talerRefundUri: uri + talerRefundUri: uri, }); onSuccess(res.transactionId); |