From 15b9006c3c81c02661dafda67b9c0aeeb3b1b12e 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..1e49fd1066b 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 + sceneMarker.end_seconds && sceneMarker.end_seconds !== -1 ? `${TextUtils.secondsToTimestamp( sceneMarker.seconds )}-${TextUtils.secondsToTimestamp(sceneMarker.end_seconds)}`