From 1aff165116f992b2c8fa65b178a9f1eb396477fd Mon Sep 17 00:00:00 2001 From: behnaz-deriv Date: Wed, 28 Feb 2024 16:19:56 +0800 Subject: [PATCH 1/2] chore: phone 8 d --- crowdin/messages.json | 2 +- .../signup-affiliates/validations/_affilaite_validation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crowdin/messages.json b/crowdin/messages.json index 9cfeb10be25..3fada8dd259 100644 --- a/crowdin/messages.json +++ b/crowdin/messages.json @@ -83,6 +83,7 @@ "71535160": "Calculate the overnight fees for holding any open positions. The fees can be positive or negative depending on your swap rate.", "71630191": "Do not share your account information and other personal details with anyone via Telegram.", "71650838": "Speak simply and plainly, and not hide behind ambiguity", + "71755468": "In a journey spanning more than 23 years, we have grown to over 2.5 million customers worldwide. But our mission has remained the same:", "73765361": "Chief Audit Executive", "74138086": "Take control of your trades on Deriv MT5", "74593350": "3. Select Real account or Demo account.", @@ -4702,7 +4703,6 @@ "-1520902282": "No credit card needed", "-2022759357": "Make trading accessible to anyone, anywhere", "-77779780": "From inception, our goal was to break free of the high commissions and clunky products offered by traditional brokers. Also, we aim to deliver a first-class experience to digitally inclined traders, regardless of the size of their accounts.", - "-1321496264": "In a journey spanning 25 years, we have grown to over 2.5 million customers worldwide. But our mission has remained the same:", "-554746075": "Integrity", "-1917169640": "We serve our customers with fairness and transparency. We settle all contracts by the book and speak plainly and truthfully.", "-1679427554": "Customer focus", diff --git a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx index e58038c41c1..2961554f244 100644 --- a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx +++ b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx @@ -86,7 +86,7 @@ const phoneValidation = (input: string) => { if (!input) { return localize('_t_Mobile number is required_t_') } else if ( - input.length < 8 || + input.length < 9 || input.length > 13 || !affiliate_validation_regex.non_empty_string(input) ) { From ae4d9bc9f6566c178fe2f4207dbc166589ac4afd Mon Sep 17 00:00:00 2001 From: behnaz-deriv Date: Fri, 1 Mar 2024 11:45:47 +0800 Subject: [PATCH 2/2] chore: add the phone length --- .../signup-affiliates/validations/_affilaite_validation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx index 2961554f244..8d8e75ebf73 100644 --- a/src/pages/signup-affiliates/validations/_affilaite_validation.tsx +++ b/src/pages/signup-affiliates/validations/_affilaite_validation.tsx @@ -87,7 +87,7 @@ const phoneValidation = (input: string) => { return localize('_t_Mobile number is required_t_') } else if ( input.length < 9 || - input.length > 13 || + input.length > 14 || !affiliate_validation_regex.non_empty_string(input) ) { return localize('_t_You should enter 8-13 numbers._t_')