Skip to content

Commit 2e617cb

Browse files
committed
lastActive should use the zoneUnits
1 parent e4c8789 commit 2e617cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const ZoneIndex = ({ config }: { config: Partial<GameConfig> | undefined }) => {
221221
const activeUnits = zoneUnits.filter(
222222
(u) => u.location && u.location.time + unitTimeoutBlocks > blockNumber
223223
);
224-
const lastActiveUnit = activeUnits.reduce(
224+
const lastActiveUnit = zoneUnits.reduce(
225225
(lastActiveUnit, u) =>
226226
u.location && u.location.time > lastActiveUnit ? u.location.time : lastActiveUnit,
227227
0

0 commit comments

Comments
 (0)