feature/IO-2916-Remove-Beta-Switch-LEGACY - Remove cookie

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-10 13:16:08 -04:00
parent 3e1a8c87d1
commit 799b24c90e

View File

@@ -116,7 +116,7 @@ function Header({
const { t } = useTranslation();
export const deleteBetaCookie = () => {
const deleteBetaCookie = () => {
const cookieExists = document.cookie.split("; ").some((row) => row.startsWith(`betaSwitchImex=`));
if (cookieExists) {
const domain = window.location.hostname.split(".").slice(-2).join(".");
@@ -126,9 +126,9 @@ function Header({
console.log(`betaSwitchImex cookie does not exist`);
}
};
deleteBetaCookie();
const accountingChildren = [];
if (