Skip to content

Commit

Permalink
Fix checks for end_seconds being undefined in WallItem.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MinasukiHikimuna committed Sep 29, 2024
1 parent 6abac20 commit 15b9006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Wall/WallItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const WallItem = <T extends WallItemType>({
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)}`
Expand Down

0 comments on commit 15b9006

Please sign in to comment.