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 <>;