aboutsummaryrefslogtreecommitdiff
path: root/packages/bank-ui/src/pages/admin/RemoveAccount.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-03-11 14:56:25 -0300
committerSebastian <sebasjm@gmail.com>2024-03-11 14:57:48 -0300
commit37f46f4d6b821d163c3e4db5c374b1120212ac74 (patch)
tree641c5bccd6d1b77fa440e67b80543eec9378ef4a /packages/bank-ui/src/pages/admin/RemoveAccount.tsx
parent4cbe754aca72b6edee922e3a84f251030293f088 (diff)
downloadwallet-core-37f46f4d6b821d163c3e4db5c374b1120212ac74.tar.gz
wallet-core-37f46f4d6b821d163c3e4db5c374b1120212ac74.tar.bz2
wallet-core-37f46f4d6b821d163c3e4db5c374b1120212ac74.zip
obs and cancel request, plus lint
Diffstat (limited to 'packages/bank-ui/src/pages/admin/RemoveAccount.tsx')
-rw-r--r--packages/bank-ui/src/pages/admin/RemoveAccount.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/bank-ui/src/pages/admin/RemoveAccount.tsx b/packages/bank-ui/src/pages/admin/RemoveAccount.tsx
index 61def9a95..74172d058 100644
--- a/packages/bank-ui/src/pages/admin/RemoveAccount.tsx
+++ b/packages/bank-ui/src/pages/admin/RemoveAccount.tsx
@@ -127,6 +127,7 @@ export function RemoveAccount({
title: i18n.str`No enough permission to delete the account.`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
});
case HttpStatusCode.NotFound:
return notify({
@@ -134,6 +135,7 @@ export function RemoveAccount({
title: i18n.str`The username was not found.`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
});
case TalerErrorCode.BANK_RESERVED_USERNAME_CONFLICT:
return notify({
@@ -141,6 +143,7 @@ export function RemoveAccount({
title: i18n.str`Can't delete a reserved username.`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
});
case TalerErrorCode.BANK_ACCOUNT_BALANCE_NOT_ZERO:
return notify({
@@ -148,6 +151,7 @@ export function RemoveAccount({
title: i18n.str`Can't delete an account with balance different than zero.`,
description: resp.detail.hint as TranslatedString,
debug: resp.detail,
+ when: AbsoluteTime.now(),
});
case HttpStatusCode.Accepted: {
updateBankState("currentChallenge", {