diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index f7e8643..443f146 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -29,12 +29,6 @@ const Home: Component = () => { const pubkey = usePubkey(); const commands = useCommands(); - onMount(() => { - if (!loginStatus().loggedIn) { - navigate('/hello'); - } - }); - createEffect(() => { config().relayUrls.map(async (relayUrl) => { const relay = await pool().ensureRelay(relayUrl); @@ -128,6 +122,12 @@ const Home: Component = () => { }); }; + onMount(() => { + if (!loginStatus().loggedIn) { + navigate('/hello'); + } + }); + const japaneseRegex = /[あ-ん]/; return (