From d87c8d96f222dbc9c721826e8c24f6de49193c81 Mon Sep 17 00:00:00 2001 From: vgeffer Date: Sat, 23 Nov 2024 01:52:10 +0100 Subject: [PATCH 1/2] Changed error message --- src/components/RegisterForm/RegisterForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/RegisterForm/RegisterForm.tsx b/src/components/RegisterForm/RegisterForm.tsx index 362c78c1..27d8124d 100644 --- a/src/components/RegisterForm/RegisterForm.tsx +++ b/src/components/RegisterForm/RegisterForm.tsx @@ -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 +421 123 456 789.' }, } From 70be5ccfd9f4216a2c38abef54ea07a558650dd3 Mon Sep 17 00:00:00 2001 From: vgeffer Date: Sat, 23 Nov 2024 10:26:52 +0100 Subject: [PATCH 2/2] Changed error message --- src/components/RegisterForm/RegisterForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/RegisterForm/RegisterForm.tsx b/src/components/RegisterForm/RegisterForm.tsx index 27d8124d..e12f4c35 100644 --- a/src/components/RegisterForm/RegisterForm.tsx +++ b/src/components/RegisterForm/RegisterForm.tsx @@ -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.' + return '* Zadaj telefónne číslo vo formáte s predvoľbou (napr. +421 123 456 789).' }, }