diff --git a/src/timelines/Home.tsx b/src/timelines/Home.tsx index 5483771..2bd5e34 100644 --- a/src/timelines/Home.tsx +++ b/src/timelines/Home.tsx @@ -198,8 +198,16 @@ const Home: ParentComponent = (props) => { const settings$ = useStore($settings); const [profiles] = useSignedInProfiles(); - const profile = () => profiles()[0].inf; - const client = () => profiles()[0].client; + const profile = () => { + const all = profiles(); + if (all.length > 0) { + return all[0].inf; + } + }; + const client = () => { + const all = profiles() + return all?.[0]?.client + }; const navigate = useNavigate(); const [heroSrc, setHeroSrc] = createSignal({});