diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/business/CreateCashout.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/business/CreateCashout.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/pages/business/CreateCashout.tsx b/packages/demobank-ui/src/pages/business/CreateCashout.tsx index c3921cbd0..9ee5cbeaf 100644 --- a/packages/demobank-ui/src/pages/business/CreateCashout.tsx +++ b/packages/demobank-ui/src/pages/business/CreateCashout.tsx @@ -16,6 +16,7 @@ import { Amounts, HttpStatusCode, + TalerCorebankApi, TalerError, TalerErrorCode, TranslatedString, @@ -197,6 +198,13 @@ export function CreateCashout({ notifyInfo(i18n.str`Cashout created`) } else { switch (resp.case) { + case HttpStatusCode.Accepted: { + resp.body.challenge_id; + return notify({ + type: "info", + title: i18n.str`Cashout created but confirmation is required.`, + }); + } case HttpStatusCode.NotFound: return notify({ type: "error", title: i18n.str`Account not found`, |