Skip to content

Commit

Permalink
hotfix(tp): "other" how-hear-about-redi field never appears
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbolikowski committed Sep 14, 2023
1 parent d0f25f8 commit fec62e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/redi-talent-pool/src/pages/front/signup/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
FirstPointOfTpContactOption,
TpCompanyProfileSignUpOperationType,
useListAllTpCompanyNamesQuery,
} from '@talent-connect/data-access'
Expand Down Expand Up @@ -86,7 +87,8 @@ function buildValidationSchema(signupType: SignUpPageType['type']) {
howDidHearAboutRediOtherText: Yup.string().when(
'howDidHearAboutRediKey',
{
is: (howDidHearAboutRediKey) => howDidHearAboutRediKey === 'other',
is: (howDidHearAboutRediKey) =>
howDidHearAboutRediKey === FirstPointOfTpContactOption.Other,
then: Yup.string().required('This field is required'),
}
),
Expand Down Expand Up @@ -310,7 +312,8 @@ export default function SignUp() {
items={howDidHearAboutRediOptionsEntries}
{...formik}
/>
{formik.values.howDidHearAboutRediKey === 'other' ? (
{formik.values.howDidHearAboutRediKey ===
FirstPointOfTpContactOption.Other ? (
<FormInput
name="howDidHearAboutRediOtherText"
placeholder="Please tell us how you heard about ReDI Talent Pool"
Expand Down

0 comments on commit fec62e8

Please sign in to comment.