diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-23 08:30:43 -0300 |
commit | 73e36c99037cef1ccc43bb80b67b19e0f44326fd (patch) | |
tree | c076b0084a3fb5004b8f3ffa32cc09a9b1a42d22 /packages/demobank-ui/src/pages/OperationState/views.tsx | |
parent | 271488f041890391e1c6d946fd1aef00c2113fd0 (diff) | |
download | wallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.tar.xz |
return to form after 2fa cancelled
Diffstat (limited to 'packages/demobank-ui/src/pages/OperationState/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/OperationState/views.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/OperationState/views.tsx b/packages/demobank-ui/src/pages/OperationState/views.tsx index d086c3dd1..6eee6daa9 100644 --- a/packages/demobank-ui/src/pages/OperationState/views.tsx +++ b/packages/demobank-ui/src/pages/OperationState/views.tsx @@ -51,6 +51,7 @@ export function InvalidReserveView({ reserve }: State.InvalidReserve) { export function NeedConfirmationView({ onAbort: doAbort, onConfirm: doConfirm, + routeHere, account, id, onAuthorizationRequired, @@ -144,7 +145,9 @@ export function NeedConfirmationView({ operation: "confirm-withdrawal", id: String(resp.body.challenge_id), sent: AbsoluteTime.never(), + location: routeHere.url({ wopid: id }), request: id, + }); return onAuthorizationRequired(); } @@ -331,7 +334,7 @@ export function ConfirmedView({ routeClose }: State.Confirmed) { export function ReadyView({ uri, onAbort: doAbort, -}: State.Ready): VNode<Record<string, never>> { +}: State.Ready): VNode { const { i18n } = useTranslationContext(); const walletInegrationApi = useTalerWalletIntegrationAPI(); const [notification, notify, errorHandler] = useLocalNotification(); |