From c63738e17df4d5bfff2049a6d1c445c609c2189e Mon Sep 17 00:00:00 2001
From: Sam Nystrom <sam@samnystrom.dev>
Date: Thu, 14 Mar 2024 19:29:29 -0400
Subject: fix: fix lots of type errors

---
 src/pages/SignUp.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/pages/SignUp.tsx')

diff --git a/src/pages/SignUp.tsx b/src/pages/SignUp.tsx
index 22e1512..e1cee3c 100644
--- a/src/pages/SignUp.tsx
+++ b/src/pages/SignUp.tsx
@@ -5,7 +5,7 @@ import { Pb } from '../context.ts';
 import { Header, Content, Form, FormLabel, TextInput, Button, ArrowButton } from '../components';
 
 const SignUp = () => {
-	const pb = useContext(Pb);
+	const pb = useContext(Pb)!;
 
 	const username = useSignal('');
 	const email = useSignal('');
@@ -22,7 +22,7 @@ const SignUp = () => {
 			passwordConfirm: confirm.value,
 		});
 		if (pb.authStore.isValid) {
-			route('/' + pb.authStore.model.username);
+			route('/' + pb.authStore.model!.username);
 		}
 	}, []);
 
-- 
cgit v1.2.3

