From 8100e774807c39eb4e4834b541ece0b02562baee Mon Sep 17 00:00:00 2001 From: Vins Date: Fri, 31 May 2024 15:18:18 +0200 Subject: [PATCH] Edit customer accepts dot in phone number --- src/front/Components/Layouts/Folder/UpdateClient/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/front/Components/Layouts/Folder/UpdateClient/index.tsx b/src/front/Components/Layouts/Folder/UpdateClient/index.tsx index 6f7c27d6..88a6e32d 100644 --- a/src/front/Components/Layouts/Folder/UpdateClient/index.tsx +++ b/src/front/Components/Layouts/Folder/UpdateClient/index.tsx @@ -179,6 +179,7 @@ class UpdateClientClass extends BasePage { if (!values["cell_phone_number"]) return; // remove every space from the phone number values["cell_phone_number"] = values["cell_phone_number"].replace(/\s/g, ""); + values["cell_phone_number"] = values["cell_phone_number"].replace(/\./g, ""); if (values["cell_phone_number"] && values["cell_phone_number"].length === 10) { // get the first digit of the phone number const firstDigit = values["cell_phone_number"].charAt(0);