diff --git a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx index 409b622..8bdc818 100644 --- a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx +++ b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx @@ -34,10 +34,10 @@ type Params = { * @returns the favicon url or null if there is no favicon */ function getFavicon( - platform: ServerPlatform, + platform: ServerPlatform | null, server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer | undefined, ): string | undefined { - if (platform === ServerPlatform.Bedrock) { + if (server == null || platform === ServerPlatform.Bedrock) { return config.apiUrl + "/server/icon/fallback"; } server = server as CachedJavaMinecraftServer;