From 4eedbc0d1c65d9ce43ecc38cfff44e29353d57c6 Mon Sep 17 00:00:00 2001 From: saurabh yadav Date: Mon, 15 Jan 2024 19:12:59 +0530 Subject: [PATCH] More occurrences of country blocker removed --- .../features/src/onboarding/steps/Profile.tsx | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/libs/client/features/src/onboarding/steps/Profile.tsx b/libs/client/features/src/onboarding/steps/Profile.tsx index 6a7250d3..7201ead9 100644 --- a/libs/client/features/src/onboarding/steps/Profile.tsx +++ b/libs/client/features/src/onboarding/steps/Profile.tsx @@ -72,7 +72,7 @@ export function Profile({ title, onNext }: StepProps) { dob: data.dob, household: data.household, country: data.country, - state: data.country === 'US' ? data.state : null, // should be NULL if country is not US + state: null, // should always be null for now maybeGoals: data.maybeGoals, maybeGoalsDescription: data.maybeGoalsDescription, }) @@ -207,7 +207,7 @@ function ProfileForm({ title, onSubmit, defaultValues }: ProfileViewProps) { setCurrentQuestion('residence')} @@ -236,29 +236,6 @@ function ProfileForm({ title, onSubmit, defaultValues }: ProfileViewProps) { )} /> - - {country === 'US' && ( - ( - - - {Geo.states.find((s) => s.code === field.value)?.name || - 'Select'} - - - {Geo.states.map((state) => ( - - {state.name} - - ))} - - - )} - /> - )}