Skip to content

Commit

Permalink
Changed error message (#458)
Browse files Browse the repository at this point in the history
* Changed error message

* Changed error message
  • Loading branch information
vgeffer authored Nov 23, 2024
1 parent 842c276 commit 199a1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const RegisterForm: FC = () => {
const phoneRule = {
validate: (val?: string) => {
if (val && !/^(\+\d{10,12})$/u.test(val.replaceAll(/\s+/gu, '')))
return '* Zadaj telefónne číslo vo formáte +421 123 456 789 alebo +421123456789.'
return '* Zadaj telefónne číslo vo formáte s predvoľbou (napr. +421 123 456 789).'
},
}

Expand Down

0 comments on commit 199a1c4

Please sign in to comment.