Skip to content

Commit

Permalink
Merge pull request #63 from Bostonhacks/application-alert
Browse files Browse the repository at this point in the history
fixed state
  • Loading branch information
danielyu12 committed Sep 26, 2023
2 parents ccbfd52 + 8226250 commit db49182
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Application.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Application = ({ applicationId }) => {
gender: data.gender['value'],
pronouns: data.pronouns['value'],
country: data.country['value'],
state: data.state ? data.state['value'] : null,
state: data.state['value'],
major: data.major['value'],
educationLevel: data.educationLevel['value'],
sleep: data.sleep['value'],
Expand Down Expand Up @@ -411,9 +411,13 @@ const Application = ({ applicationId }) => {
return { label: stateOption, value: stateOption };
})}
{...field}
{...register('state', { required: true })}
/>
)}
/>
{errors.state?.type === 'required' && (
<span className="text-red-500">Required</span>
)}
</div>

<div>
Expand Down

0 comments on commit db49182

Please sign in to comment.