File tree Expand file tree Collapse file tree
embed/oko_attached/src/components/sign_with_oko_box Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { FC } from "react";
55import styles from "./sign_with_oko_box.module.scss" ;
66import { useMobileMode } from "@oko-wallet-attached/hooks/mobile_mode" ;
77import {
8- DEMO_WEB_ORIGIN ,
8+ isDemoOrSandboxOrigin ,
99 USER_DASHBOARD_ORIGINS ,
1010} from "@oko-wallet-attached/requests/endpoints" ;
1111import { 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 } >
You can’t perform that action at this time.
0 commit comments