fix cc way

This commit is contained in:
Nastya 2024-08-22 12:07:57 +03:00
parent 8796b35600
commit 9394e78206

@ -18,9 +18,10 @@ export default () => {
const domain = (host.includes("s") ? "s" : "") + from; const domain = (host.includes("s") ? "s" : "") + from;
const pathname = from.includes("hub") ? "/tariffs" : "/list"; 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 document.location.href = link
return <></>; return <></>;