From fd1af3efee8875617dea2ec01e0d7e23f746f4c6 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 11 Jan 2024 11:10:08 +0000 Subject: [PATCH] Updated a bit of the conditions to show the Demographic input --- src/pages/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0e19d918..79322a97 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -67,7 +67,12 @@ export default function Home({envVariables}: {envVariables: {[key: string]: stri useEffect(() => { if (user) { - setShowDemographicInput(!user.demographicInformation); + setShowDemographicInput( + !user.demographicInformation || + !user.demographicInformation.country || + !user.demographicInformation.gender || + !user.demographicInformation.phone, + ); setShowDiagnostics(user.isFirstLogin && user.type === "student"); } }, [user]);