Skip to content

Commit

Permalink
fix(Employee): capped employerName to 40 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
crisner1978 committed Jan 17, 2024
1 parent fcac29f commit 52438c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return (
<>
<HighlightInit
// excludedHostnames={['localhost']}
excludedHostnames={['localhost']}
projectId={CONSTANTS.NEXT_PUBLIC_HIGHLIGHT_PROJECT_ID}
serviceName='credit-app'
tracingOrigins
Expand Down
8 changes: 4 additions & 4 deletions src/components/sections/Employment/JointEmployee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export default function JointEmployee() {
<InputField
{...register('co_employerName', {
required: 'Required',
maxLength: { value: 50, message: 'Max 50 chars' },
maxLength: { value: 40, message: 'Max 40 chars' },
})}
maxLength={50}
maxLength={40}
errormsg={errors?.co_employerName?.message!}
variant='sm:col-span-6 whitespace-nowrap'
placeholder='ABC Company'
Expand Down Expand Up @@ -114,9 +114,9 @@ export default function JointEmployee() {
<InputField
{...register('co_previousEmployerName', {
required: 'Required',
maxLength: { value: 50, message: 'Max 50 chars' },
maxLength: { value: 40, message: 'Max 40 chars' },
})}
maxLength={50}
maxLength={40}
errormsg={errors?.co_previousEmployerName?.message!}
variant='sm:col-span-6 whitespace-nowrap'
placeholder='ABC Company'
Expand Down
8 changes: 4 additions & 4 deletions src/components/sections/Employment/PrimaryEmployee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default function PrimaryEmployee() {
<InputField
{...register('employerName', {
required: 'Required',
maxLength: { value: 50, message: 'Max 50 chars' },
maxLength: { value: 40, message: 'Max 40 chars' },
})}
maxLength={50}
maxLength={40}
errormsg={errors?.employerName?.message!}
variant='sm:col-span-6 whitespace-nowrap'
placeholder='ABC Company'
Expand Down Expand Up @@ -113,9 +113,9 @@ export default function PrimaryEmployee() {
<InputField
{...register('previousEmployerName', {
required: 'Required',
maxLength: { value: 50, message: 'Max 50 chars' },
maxLength: { value: 40, message: 'Max 40 chars' },
})}
maxLength={50}
maxLength={40}
errormsg={errors?.previousEmployerName?.message!}
variant='sm:col-span-6 whitespace-nowrap'
placeholder='ABC Company'
Expand Down

1 comment on commit 52438c1

@vercel
Copy link

@vercel vercel bot commented on 52438c1 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

credit-app – ./

credit-app.dev.driv.ly
credit-app-git-main.dev.driv.ly
credit.driv.ly

Please sign in to comment.