diff options
Diffstat (limited to 'packages/demobank-ui/src/hooks')
-rw-r--r-- | packages/demobank-ui/src/hooks/backend.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/hooks/backend.ts b/packages/demobank-ui/src/hooks/backend.ts index e0649f5fe..8d526c0e4 100644 --- a/packages/demobank-ui/src/hooks/backend.ts +++ b/packages/demobank-ui/src/hooks/backend.ts @@ -28,6 +28,7 @@ import { useApiContext } from "@gnu-taler/web-util/lib/index.browser"; import { useCallback, useEffect, useState } from "preact/hooks"; import { useSWRConfig } from "swr"; import { useBackendContext } from "../context/backend.js"; +import { bankUiSettings } from "../settings.js"; /** * Has the information to reach and @@ -50,7 +51,7 @@ interface LoggedOut { status: "loggedOut"; } -const maybeRootPath = "https://bank.demo.taler.net/demobanks/default/"; +const maybeRootPath = bankUiSettings.backendBaseURL; export function getInitialBackendBaseURL(): string { const overrideUrl = localStorage.getItem("bank-base-url"); |