From c5b12835a20859cf6a99c9091547fba5484b77c0 Mon Sep 17 00:00:00 2001 From: Minasuki Hikimuna Date: Sun, 29 Sep 2024 06:15:48 +0300 Subject: [PATCH] Fix checks for end_seconds being undefined in WallItem.tsx --- ui/v2.5/src/components/Wall/WallItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/v2.5/src/components/Wall/WallItem.tsx b/ui/v2.5/src/components/Wall/WallItem.tsx index dd6bb9f67f7..c73a1284d39 100644 --- a/ui/v2.5/src/components/Wall/WallItem.tsx +++ b/ui/v2.5/src/components/Wall/WallItem.tsx @@ -184,7 +184,7 @@ export const WallItem = ({ const sceneMarker = data as GQL.SceneMarkerDataFragment; const newTitle = markerTitle(sceneMarker); const seconds = - sceneMarker.end_seconds !== -1 + typeof sceneMarker.end_seconds === 'number' && sceneMarker.end_seconds !== -1 ? `${TextUtils.secondsToTimestamp( sceneMarker.seconds )}-${TextUtils.secondsToTimestamp(sceneMarker.end_seconds)}`