Skip to content

Commit

Permalink
hotfix: fix setGender
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Aug 26, 2024
1 parent ad473cb commit 88938c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/(onboarding)/signup/_components/steps/GenderForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const GenderForm = ({
}: {
handleSubmit: (profile: UserProfile) => Promise<boolean>
}) => {
const { newName, newBirthDt, newGender, setGender } = useProfile()
const { newName, newBirthDt, newGender, setNewGender } = useProfile()
const [hasError, setHasError] = useState(false)
const router = useRouter()

Expand Down Expand Up @@ -41,8 +41,8 @@ const GenderForm = ({
</p>

<div className="mx-auto mb-6 flex flex-1 items-center gap-2">
<GenderBtn gender="M" onClick={() => setGender('M')} />
<GenderBtn gender="F" onClick={() => setGender('F')} />
<GenderBtn gender="M" onClick={() => setNewGender('M')} />
<GenderBtn gender="F" onClick={() => setNewGender('F')} />
</div>

<Button
Expand Down

0 comments on commit 88938c6

Please sign in to comment.