Skip to content

Commit

Permalink
Merge branch 'main' into feat/GWS-3682
Browse files Browse the repository at this point in the history
  • Loading branch information
serikjensen authored Feb 24, 2025
2 parents 825ebce + 9195fd7 commit a09da42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.1

- Fix for self onboarding profile form validation

## 0.4.0

- Added responsive behavior to foundational components
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gusto/embedded-react-sdk",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "https://github.com/Gusto/embedded-react-sdk",
"bugs": {
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Employee/Profile/HomeAddress.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Alert, Checkbox, Grid, Select, TextField } from '@/components/Common'
import { EmployeeOnboardingStatus, STATES_ABBR } from '@/shared/constants'
import { STATES_ABBR } from '@/shared/constants'
import { Link, ListBoxItem } from 'react-aria-components'
import { useFormContext } from 'react-hook-form'
import { Trans, useTranslation } from 'react-i18next'
Expand All @@ -17,7 +17,7 @@ export const HomeAddressSchema = v.variant('self_onboarding', [
v.check(zip => /(^\d{5}$)|(^\d{5}-\d{4}$)/.test(zip)),
),
courtesy_withholding: v.boolean(),
self_onboarding: v.literal(false),
self_onboarding: v.union([v.literal(false), v.undefined()]),
}),
v.object({ self_onboarding: v.literal(true) }),
])
Expand Down

0 comments on commit a09da42

Please sign in to comment.