From 93ad9ab157377c9168a6e87fc21f2bbb2865eb1a Mon Sep 17 00:00:00 2001 From: vladisluw <54843319+seelentov@users.noreply.github.com> Date: Sun, 14 Jul 2024 21:11:28 +0500 Subject: [PATCH] Fix Phone number on links --- src/components/Call/call.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Call/call.config.ts b/src/components/Call/call.config.ts index 3f06d62..d6d800b 100644 --- a/src/components/Call/call.config.ts +++ b/src/components/Call/call.config.ts @@ -9,6 +9,8 @@ interface IYMClickProps{ child?: string } +const phoneOnLink = `${INFO.PHONE.slice(0,5)}..........${INFO.PHONE.slice(INFO.PHONE.length - 3,INFO.PHONE.length - 1)}` + export const links: IYMClickProps[] = [ { metrik_id: 96723379, @@ -16,7 +18,7 @@ export const links: IYMClickProps[] = [ target: '_blank', link: `https://wa.me/${INFO.PHONE}`, child: ` -

wa.me/${INFO.PHONE}

` +

wa.me/${phoneOnLink}

` }, { metrik_id: 96723379, @@ -24,13 +26,13 @@ export const links: IYMClickProps[] = [ target: '_blank', link: `https://t.me/${INFO.PHONE}`, child: ` -

t.me/${INFO.PHONE}

` +

t.me/${phoneOnLink}

` }, { metrik_id: 96723379, name: 'phone_cta', link: `tel:${INFO.PHONE}`, child: ` -

${INFO.PHONE}

` +

${phoneOnLink}

` }, ] \ No newline at end of file