diff options
Diffstat (limited to 'packages/demobank-ui/src/components/Routing.tsx')
-rw-r--r-- | packages/demobank-ui/src/components/Routing.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/demobank-ui/src/components/Routing.tsx b/packages/demobank-ui/src/components/Routing.tsx index aafc95687..04cf96190 100644 --- a/packages/demobank-ui/src/components/Routing.tsx +++ b/packages/demobank-ui/src/components/Routing.tsx @@ -32,8 +32,8 @@ import { bankUiSettings } from "../settings.js"; export function Routing(): VNode { const history = createHashHistory(); const backend = useBackendContext(); - const {i18n} = useTranslationContext(); - + const { i18n } = useTranslationContext(); + if (backend.state.status === "loggedOut") { return <BankFrame > <Router history={history}> @@ -143,9 +143,6 @@ export function Routing(): VNode { onRegister={() => { route("/register"); }} - onLoadNotOk={() => { - route("/account"); - }} /> )} /> |