Skip to content

Commit

Permalink
Fix checks for end_seconds being undefined in PrimaryTags.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MinasukiHikimuna committed Sep 29, 2024
1 parent 7e10ab8 commit 6abac20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Scenes/SceneDetails/PrimaryTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const PrimaryTags: React.FC<IPrimaryTags> = ({
</Button>
</div>
<div>
{marker.end_seconds !== -1
{marker.end_seconds && marker.end_seconds !== -1
? `${TextUtils.secondsToTimestamp(
marker.seconds
)}-${TextUtils.secondsToTimestamp(marker.end_seconds)}`
Expand Down

0 comments on commit 6abac20

Please sign in to comment.