diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-08 15:18:41 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-08 15:19:26 -0300 |
commit | b419db505b8cd5e7aa92043696f42a0d710d9226 (patch) | |
tree | c18eb877999de68c5be6821710a1c0ba7ace4a1b /packages/anastasis-webui/src/pages/home/authMethod | |
parent | b00635c1404ed3cc6ed36940bd54ff70cb837f0f (diff) | |
download | wallet-core-b419db505b8cd5e7aa92043696f42a0d710d9226.tar.xz |
ui testing
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/authMethod')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx index f9b292d94..0285c87e1 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSetup.tsx @@ -36,6 +36,7 @@ export function AuthMethodTotpSetup({ const [test, setTest] = useState(""); const secretKey = useMemo(() => { const array = new Uint8Array(32); + if (typeof window === "undefined") return array; return window.crypto.getRandomValues(array); }, []); |