summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-02-23 08:30:43 -0300
committerSebastian <sebasjm@gmail.com>2024-02-23 08:30:43 -0300
commit73e36c99037cef1ccc43bb80b67b19e0f44326fd (patch)
treec076b0084a3fb5004b8f3ffa32cc09a9b1a42d22 /packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
parent271488f041890391e1c6d946fd1aef00c2113fd0 (diff)
downloadwallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.tar.gz
wallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.tar.bz2
wallet-core-73e36c99037cef1ccc43bb80b67b19e0f44326fd.zip
return to form after 2fa cancelled
Diffstat (limited to 'packages/demobank-ui/src/pages/WalletWithdrawForm.tsx')
-rw-r--r--packages/demobank-ui/src/pages/WalletWithdrawForm.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
index ecb3eb4fc..078f4e5f5 100644
--- a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
+++ b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx
@@ -54,7 +54,7 @@ function OldWithdrawalForm({
focus?: boolean;
routeOperationDetails: RouteDefinition<{ wopid: string }>,
onOperationCreated: (wopid: string) => void;
- routeCancel: RouteDefinition<Record<string, never>>;
+ routeCancel: RouteDefinition;
}): VNode {
const { i18n } = useTranslationContext();
const [settings] = usePreferences();
@@ -300,7 +300,7 @@ export function WalletWithdrawForm({
onAuthorizationRequired: () => void;
onOperationCreated: (wopid: string) => void;
onOperationAborted: () => void;
- routeCancel: RouteDefinition<Record<string, never>>;
+ routeCancel: RouteDefinition;
}): VNode {
const { i18n } = useTranslationContext();
const [settings, updateSettings] = usePreferences();
@@ -355,6 +355,7 @@ export function WalletWithdrawForm({
currency={limit.currency}
onAuthorizationRequired={onAuthorizationRequired}
routeClose={routeCancel}
+ routeHere={routeOperationDetails}
onAbort={onOperationAborted}
// route={routeCancel}
/>