From 18b360264525a0f61fdaef9888348bddd1ff64ea Mon Sep 17 00:00:00 2001 From: karooolis Date: Fri, 11 Oct 2024 10:43:14 +0300 Subject: [PATCH] remove priorty infinity --- .../[chainName]/worlds/[worldAddress]/observe/useTimings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/useTimings.ts b/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/useTimings.ts index e6cd38a0ed..8a78f7df9b 100644 --- a/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/useTimings.ts +++ b/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/useTimings.ts @@ -15,8 +15,8 @@ type EventType = keyof typeof eventConfig; export function useTimings({ time: start, events }: Write) { const maxLen = Math.max(...events.map((event) => event.time - start)); const sortedEvents = Object.values(events).sort((a, b) => { - const priorityA = eventConfig[a.type as EventType]?.priority ?? Infinity; - const priorityB = eventConfig[b.type as EventType]?.priority ?? Infinity; + const priorityA = eventConfig[a.type as EventType]?.priority; + const priorityB = eventConfig[b.type as EventType]?.priority; return priorityA - priorityB; });