diff --git a/app/root.tsx b/app/root.tsx index 1ea0bf88f..4b48b59fa 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -197,7 +197,9 @@ function Document({ {import.meta.env.VITE_FUSE_ENABLED && - !data?.user?.roles.includes("MINOR_SUPPORT") ? ( + // check for data so supporters don't see ads on error page + data && + !data.user?.roles.includes("MINOR_SUPPORT") ? (