From 59c50da3018dbc322ccd48e4afc550afa91c6523 Mon Sep 17 00:00:00 2001 From: Joey Date: Sun, 8 Sep 2024 23:02:13 +0200 Subject: [PATCH] fix race graph --- app/races/[race]/race-progress-graph.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/races/[race]/race-progress-graph.tsx b/app/races/[race]/race-progress-graph.tsx index a497cf3..3ab894e 100644 --- a/app/races/[race]/race-progress-graph.tsx +++ b/app/races/[race]/race-progress-graph.tsx @@ -17,7 +17,8 @@ const isRaceParticipantSplitMessage = ( message: RaceMessage, ): message is RaceMessage => message.type === "participant-split" || - message.type === "participant-finish"; + message.type === "participant-finish" || + message.type === "participant-confirm"; export const RaceProgressGraph = ({ race, @@ -107,8 +108,7 @@ export const RaceProgressGraph = ({ .filter(isRaceParticipantSplitMessage) .reverse() .forEach((message) => { - if (!message.data || !message.data.time || !message.data.percentage) - return; + if (!message.data || !message.data.time) return; const current = participantsMap.get(message.data.user); if (!current) return;