Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix www type errors

Alaister Youngee8680bf1c14
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
index 8c46fd7cdfe..0e2bed3c4aa 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
@@ -48,7 +48,9 @@ export default function TicketForm({ defaultUsername = '', setTicketGenerationSt
.select('*')
.eq('username', username)
.single()
- setUserData(data)
+ if (data) {
+ setUserData(data)
+ }
setFormState('default')
// Prefetch GitHub avatar
@@ -66,7 +68,7 @@ export default function TicketForm({ defaultUsername = '', setTicketGenerationSt
setPageState('ticket')
// Listen to realtime changes
- if (!realtimeChannel && !data.golden) {
+ if (!realtimeChannel && !data?.golden) {
const channel = supabase
.channel('changes')
.on(