diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
| commit | c63738e17df4d5bfff2049a6d1c445c609c2189e (patch) | |
| tree | 5e64cdbcd49a3d6f7348cff8ad80a8eafb6dc83c /src/pages/LogIn.tsx | |
| parent | 71abdb2ee3f5bdb1e029c9f4266f4b797fa960f9 (diff) | |
fix: fix lots of type errors
Diffstat (limited to 'src/pages/LogIn.tsx')
| -rw-r--r-- | src/pages/LogIn.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } }, []); |
