Skip to content

Commit

Permalink
fix(core): fix validation message for email on account settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-yevhenii-buliuk committed Nov 1, 2024
1 parent 3647900 commit 6bd054e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-dragons-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

fix validation message for email on account settings page
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,20 @@ export const TextField = ({
/>
</FieldControl>
{isRequired && (
<FieldMessage
className="absolute inset-x-0 bottom-0 inline-flex w-full text-xs font-normal text-error"
match="valueMissing"
>
{t(fieldNameById ?? 'empty')}
</FieldMessage>
<>
<FieldMessage
className="absolute inset-x-0 bottom-0 inline-flex w-full text-xs font-normal text-error"
match="valueMissing"
>
{t(fieldNameById ?? 'empty')}
</FieldMessage>
<FieldMessage
className="absolute inset-x-0 bottom-0 inline-flex w-full text-xs font-normal text-error"
match="typeMismatch"
>
{t(fieldNameById ?? 'empty')}
</FieldMessage>
</>
)}
</Field>
);
Expand Down

0 comments on commit 6bd054e

Please sign in to comment.