Skip to content

Commit 85639e3

Browse files
committed
wind-down: use isDemoOrSandboxOrigin to hide signing notice in demo/sandbox
1 parent 324497f commit 85639e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

embed/oko_attached/src/components/sign_with_oko_box/sign_with_oko_box.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { FC } from "react";
55
import styles from "./sign_with_oko_box.module.scss";
66
import { useMobileMode } from "@oko-wallet-attached/hooks/mobile_mode";
77
import {
8-
DEMO_WEB_ORIGIN,
8+
isDemoOrSandboxOrigin,
99
USER_DASHBOARD_ORIGINS,
1010
} from "@oko-wallet-attached/requests/endpoints";
1111
import { useMemoryState } from "@oko-wallet-attached/store/memory";
@@ -22,8 +22,8 @@ export const SignWithOkoBox: FC<SignWithOkoBoxProps> = ({
2222
}) => {
2323
const isMobile = useMobileMode();
2424
const hostOrigin = useMemoryState((s) => s.hostOrigin);
25-
const isDemoWeb = hostOrigin === DEMO_WEB_ORIGIN;
26-
const showBackupLink = !hideText && !isDemoWeb;
25+
const isDemo = hostOrigin !== null && isDemoOrSandboxOrigin(hostOrigin);
26+
const showBackupLink = !hideText && !isDemo;
2727

2828
return (
2929
<div className={styles.container}>

0 commit comments

Comments
 (0)