From 9394e782063857cef2de54ce857694e5c7570aaa Mon Sep 17 00:00:00 2001 From: Nastya Date: Thu, 22 Aug 2024 12:07:57 +0300 Subject: [PATCH] fix cc way --- src/pages/AfterPay/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/AfterPay/index.tsx b/src/pages/AfterPay/index.tsx index 2a448fa..8f64e5f 100644 --- a/src/pages/AfterPay/index.tsx +++ b/src/pages/AfterPay/index.tsx @@ -18,9 +18,10 @@ export default () => { const domain = (host.includes("s") ? "s" : "") + from; const pathname = from.includes("hub") ? "/tariffs" : "/list"; - const link = `https://${domain}.pena.digital${pathname}?purpose=${purpose}&userid=${userId}` + let link = `https://${domain}.pena.digital${pathname}?purpose=${purpose}&userid=${userId}` - if (isCC) link + "&cc=true" + console.log("isCC") + if (isCC) link = link + "&cc=true" document.location.href = link return <>;