Skip to content

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

feat/ init word game (#28319)

Jonathan Summers-Muir170661e615bc
diff --git a/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx b/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx
index b711f935ddf..a8cde90cdcf 100644
--- a/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx
+++ b/apps/www/components/LaunchWeek/12/Ticket/TicketingFlow.tsx
@@ -166,7 +166,7 @@ const TicketingFlow = () => {
</div>
</m.div>
)}
- {/* {!showCustomizationForm && isGameMode && (
+ {!showCustomizationForm && isGameMode && (
<m.div
key="ticket"
initial={initial}
@@ -176,7 +176,7 @@ const TicketingFlow = () => {
>
<LWGame setIsGameMode={setIsGameMode} />
</m.div>
- )} */}
+ )}
</AnimatePresence>
</LazyMotion>
</div>
diff --git a/apps/www/components/LaunchWeek/hooks/useLwGame.tsx b/apps/www/components/LaunchWeek/hooks/useLwGame.tsx
index ffaca6f7657..f5fe1403267 100644
--- a/apps/www/components/LaunchWeek/hooks/useLwGame.tsx
+++ b/apps/www/components/LaunchWeek/hooks/useLwGame.tsx
@@ -47,11 +47,11 @@ const useLwGame = (disabled?: boolean) => {
}
}
- // useEffect(() => {
- // if (!disabled) window.addEventListener('keydown', onKeyDown)
+ useEffect(() => {
+ if (!disabled) window.addEventListener('keydown', onKeyDown)
- // return () => window.removeEventListener('keydown', onKeyDown)
- // }, [disabled])
+ return () => window.removeEventListener('keydown', onKeyDown)
+ }, [disabled])
return { isGameMode, setIsGameMode }
}