Skip to content

Commit

Permalink
fix: conditional rendering of github field
Browse files Browse the repository at this point in the history
  • Loading branch information
LordHarsh committed Sep 22, 2024
1 parent 59feb13 commit 9b9814c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/domains/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Form({
!phoneNumber ||
!department ||
!year ||
(includeGithub && !github) ||
(domainProp == 'Technical' || domainProp == 'Research') ||
!subDomain
) {
setError("Please fill all the fields.");
Expand Down Expand Up @@ -204,7 +204,7 @@ export default function Form({
/>
</LabelInputContainer>
</div>
{includeGithub && (
{(domainProp == 'Technical' || domainProp == 'Research') && (
<LabelInputContainer className="mb-4">
<Input
id="github"
Expand Down

0 comments on commit 9b9814c

Please sign in to comment.