summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx')
-rw-r--r--packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
index 8cd758c75..db76e83d9 100644
--- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
+++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
@@ -49,13 +49,15 @@ export function ShowAccountDetails({
routeMyAccountCashout,
routeMyAccountDelete,
routeMyAccountDetails,
+ routeHere,
routeMyAccountPassword,
}: {
- routeClose: RouteDefinition<Record<string, never>>;
- routeMyAccountDetails: RouteDefinition<Record<string, never>>;
- routeMyAccountDelete: RouteDefinition<Record<string, never>>;
- routeMyAccountPassword: RouteDefinition<Record<string, never>>;
- routeMyAccountCashout: RouteDefinition<Record<string, never>>;
+ routeClose: RouteDefinition;
+ routeHere: RouteDefinition<{ account: string }>;
+ routeMyAccountDetails: RouteDefinition;
+ routeMyAccountDelete: RouteDefinition;
+ routeMyAccountPassword: RouteDefinition;
+ routeMyAccountCashout: RouteDefinition;
onUpdateSuccess: () => void;
onAuthorizationRequired: () => void;
account: string;
@@ -154,6 +156,7 @@ export function ShowAccountDetails({
updateBankState("currentChallenge", {
operation: "update-account",
id: String(resp.body.challenge_id),
+ location: routeHere.url({ account }),
sent: AbsoluteTime.never(),
request: submitAccount,
});