We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4c8789 commit 2e617cbCopy full SHA for 2e617cb
frontend/src/pages/index.tsx
@@ -221,7 +221,7 @@ const ZoneIndex = ({ config }: { config: Partial<GameConfig> | undefined }) => {
221
const activeUnits = zoneUnits.filter(
222
(u) => u.location && u.location.time + unitTimeoutBlocks > blockNumber
223
);
224
- const lastActiveUnit = activeUnits.reduce(
+ const lastActiveUnit = zoneUnits.reduce(
225
(lastActiveUnit, u) =>
226
u.location && u.location.time > lastActiveUnit ? u.location.time : lastActiveUnit,
227
0
0 commit comments