From 6d5301ff454f8701079d2d7aa1cdebe8b2ea564c Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:23:29 +0200 Subject: [PATCH] Fix supporters seeing ads on error page --- app/root.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") ? (