Skip to content

Commit

Permalink
fix(whitelist check): handle unauthenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
veryCrunchy committed Apr 10, 2024
1 parent d9bb299 commit e82d23e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/minecraft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit e82d23e

Please sign in to comment.