Updated a bit of the conditions to show the Demographic input
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user