ceres doesn't report correct continent

This commit is contained in:
41666 2023-06-16 11:49:46 -04:00
parent 59295ac746
commit 23a1f7708b
2 changed files with 17 additions and 3 deletions

View file

@ -28,7 +28,8 @@ export const IndexWorld = ({ metagame, population }: IndexWorldProps) => {
new Date(a.locked_since ?? Date.now()).getTime() -
new Date(b.locked_since ?? Date.now()).getTime()
)[0];
const nextZoneStrings = zones[nextZone.id];
const nextZoneStrings =
worldId !== 2000 ? zones[nextZone.id] : zones["default"];
return (
<div className={styles.container}>
@ -87,7 +88,20 @@ export const IndexWorld = ({ metagame, population }: IndexWorldProps) => {
} as any
}
></div>
<div>{nextZoneStrings.name}</div>
<div>
{worldId !== 2000 ? (
nextZoneStrings.name
) : (
<>
<span
style={{ textDecoration: "dotted" }}
title="Census doesn't report alert timings for this server yet."
>
???
</span>
</>
)}
</div>
</div>
</div>
)}

View file

@ -132,6 +132,6 @@ export const zones: Record<string, { name: string; colors: [string, string] }> =
},
default: {
name: "Unknown",
colors: ["#000000", "#000000"],
colors: ["#111111", "#cccccc"],
},
};