From e82d23eb7b780c04f6e1aa91ea057cd6efeda545 Mon Sep 17 00:00:00 2001 From: veryCrunchy Date: Wed, 10 Apr 2024 03:33:17 +0200 Subject: [PATCH] fix(whitelist check): handle unauthenticated --- pages/minecraft.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/minecraft.vue b/pages/minecraft.vue index 1ffec50..b1f7527 100644 --- a/pages/minecraft.vue +++ b/pages/minecraft.vue @@ -31,7 +31,8 @@ if (route.hash === wlHash) { ogDescription: "Get whitelisted on the GreasyCraft SMP", }); showModal.value = route.hash; - whitelistStatus.value = (await GqlCheckWhitelistStatus()).checkWhitelist; + whitelistStatus.value = + (await GqlCheckWhitelistStatus().catch(() => {}))?.checkWhitelist ?? false; } import OtpInput from "@/components/otp/input.vue";