From 04a126707bf20fd7bfb044fd7c3e2ce1f0737497 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 12 Oct 2022 17:33:11 -0500 Subject: [PATCH] fix welcome dialog page freezing bug --- web/components/onboarding/welcome.tsx | 72 ++++++++++++++------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/web/components/onboarding/welcome.tsx b/web/components/onboarding/welcome.tsx index 2ef24764..692aa656 100644 --- a/web/components/onboarding/welcome.tsx +++ b/web/components/onboarding/welcome.tsx @@ -54,47 +54,48 @@ export default function Welcome() { if (isTwitch || !user || (!user.shouldShowWelcome && !groupSelectorOpen)) return <> - return ( - <> + if (groupSelectorOpen) + return ( setGroupSelectorOpen(false)} /> + ) - - - {page === 0 && } - {page === 1 && } - {page === 2 && } - {page === 3 && } - - - - - - - toggleOpen(false)} - > - I got the gist, exit welcome - - + return ( + + + {page === 0 && } + {page === 1 && } + {page === 2 && } + {page === 3 && } + + + + + + + toggleOpen(false)} + > + I got the gist, exit welcome + - - + + ) } @@ -117,6 +118,7 @@ function PageIndicator(props: { page: number; totalpages: number }) { {[...Array(totalpages)].map((e, i) => (