From c63738e17df4d5bfff2049a6d1c445c609c2189e Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 14 Mar 2024 19:29:29 -0400 Subject: fix: fix lots of type errors --- src/pages/LogIn.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages/LogIn.tsx') diff --git a/src/pages/LogIn.tsx b/src/pages/LogIn.tsx index 296a499..5820cb6 100644 --- a/src/pages/LogIn.tsx +++ b/src/pages/LogIn.tsx @@ -5,7 +5,7 @@ import { Pb } from '../context.ts'; import { Header, Content, Form, TextInput, Button, ArrowButton, FormLabel } from '../components'; const LogIn = () => { - const pb = useContext(Pb); + const pb = useContext(Pb)!; const email = useSignal(''); const password = useSignal(''); @@ -14,7 +14,7 @@ const LogIn = () => { event.preventDefault(); await pb.collection('users').authWithPassword(email.value, password.value); if (pb.authStore.isValid) { - route('/' + pb.authStore.model.username); + route('/' + pb.authStore.model!.username); } }, []); -- cgit v1.2.3