diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md index 46b8d826..125fb693 100644 --- a/apps/docs/CHANGELOG.md +++ b/apps/docs/CHANGELOG.md @@ -1,5 +1,12 @@ # hawa-docs +## 0.0.123 + +### Patch Changes + +- Updated dependencies + - @sikka/hawa@0.49.6 + ## 0.0.122 ### Patch Changes diff --git a/apps/docs/package.json b/apps/docs/package.json index d8c608ed..5414f61f 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -1,6 +1,6 @@ { "name": "hawa-docs", - "version": "0.0.122", + "version": "0.0.123", "private": true, "scripts": { "dev": "next dev -p 3001", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index ec9eaf54..979937b1 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,11 @@ # @sikka/hawa +## 0.49.6 + +### Patch Changes + +- Fix inability to submit `RegisterForm` when `usernameOptions` prop is present + ## 0.49.5 ### Patch Changes diff --git a/packages/components/blocks/auth/RegisterForm.tsx b/packages/components/blocks/auth/RegisterForm.tsx index a8f91313..d4109194 100644 --- a/packages/components/blocks/auth/RegisterForm.tsx +++ b/packages/components/blocks/auth/RegisterForm.tsx @@ -311,6 +311,7 @@ export const RegisterForm: FC = ({
{ if (props.onRegister) { @@ -417,9 +418,13 @@ export const RegisterForm: FC = ({ width="full" autoComplete="username" label={texts?.username?.label || "Username"} - labelProps={{ - ...props.usernameOptions?.label, - }} + labelProps={ + props.usernameOptions?.label + ? { + ...props.usernameOptions?.label, + } + : undefined + } helperText={formState.errors.username?.message} placeholder={texts?.username?.placeholder} {...field} @@ -642,6 +647,7 @@ export const RegisterForm: FC = ({