[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant-backoffice] branch master updated: handle aborted withdr
From: |
gnunet |
Subject: |
[taler-merchant-backoffice] branch master updated: handle aborted withdrawal |
Date: |
Sun, 10 Apr 2022 21:54:11 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository merchant-backoffice.
The following commit(s) were added to refs/heads/master by this push:
new dbc32e3 handle aborted withdrawal
dbc32e3 is described below
commit dbc32e3d9aab8b8131416e8c6b98c7f965e1f19e
Author: ms <ms@taler.net>
AuthorDate: Sun Apr 10 21:52:42 2022 +0200
handle aborted withdrawal
---
packages/bank/src/pages/home/index.tsx | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/packages/bank/src/pages/home/index.tsx
b/packages/bank/src/pages/home/index.tsx
index 9335322..f6514b5 100644
--- a/packages/bank/src/pages/home/index.tsx
+++ b/packages/bank/src/pages/home/index.tsx
@@ -987,6 +987,21 @@ function TalerWithdrawalQRCode(Props: any): VNode {
* Wallet didn't communicate withdrawal details yet:
*/
console.log("withdrawal status", data);
+ if (data.aborted) {
+ pageStateSetter((prevState: PageStateType) => {
+ const {
+ withdrawalOutcome,
+ withdrawalId,
+ talerWithdrawUri,
+ ...rest } = prevState;
+ return {
+ ...rest,
+ withdrawalInProgress: false,
+ hasError: true,
+ error: i18n`This withdrawal was aborted!`
+ };
+ })
+ }
if (!data.selection_done) {
setTimeout(() => mutate(), 1000); // check again after 1 second.
return (<section id="main" class="content">
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant-backoffice] branch master updated: handle aborted withdrawal,
gnunet <=