Skip to content

Commit

Permalink
Merge pull request #43 from UoaWDCC/Jolin_AuthPages
Browse files Browse the repository at this point in the history
Fix role type error in Sign up page
  • Loading branch information
GodYazza authored Jul 22, 2024
2 parents 15adc34 + c2a4d5b commit ad747bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/app/components/AuthForms/SignupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ const SignupForm = ({ role }: { role: Role }) => {
Join the F:SAE:47 Job Board Community
</Title>

{role && <FormComponent fields={fieldsByRole[role]} role={role} onSubmit={handleSubmit} />}
{role ? (
<FormComponent fields={fieldsByRole[role]} role={role} onSubmit={handleSubmit} />
) : (
<Text ta="center">Please select a role to proceed.</Text>
)}
<Text ta="center" mt="md">
Already have an account?{' '}
<NavLink to="/login" className={classes.link}>
Expand Down

0 comments on commit ad747bb

Please sign in to comment.