From 1393d6886eabab843f656fcdd5c86890947625e2 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 23 Dec 2024 16:46:58 +0700 Subject: [PATCH] use Fragment instead of div --- frontend/src/components/VideoPlayer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/VideoPlayer.tsx b/frontend/src/components/VideoPlayer.tsx index 8e489d20..d81552e6 100644 --- a/frontend/src/components/VideoPlayer.tsx +++ b/frontend/src/components/VideoPlayer.tsx @@ -3,7 +3,7 @@ import updateWatchedState from '../api/actions/updateWatchedState'; import { SponsorBlockSegmentType, SponsorBlockType, VideoResponseType } from '../pages/Video'; import watchedThreshold from '../functions/watchedThreshold'; import Notifications from './Notifications'; -import { Dispatch, SetStateAction, SyntheticEvent, useState } from 'react'; +import { Dispatch, Fragment, SetStateAction, SyntheticEvent, useState } from 'react'; import formatTime from '../functions/formatTime'; import { useSearchParams } from 'react-router-dom'; import getApiUrl from '../configuration/getApiUrl'; @@ -249,13 +249,13 @@ const VideoPlayer = ({ {Object.values(skippedSegments).map(({ from, to }, index) => { return ( -
+ {from !== 0 && to !== 0 && (

Skipped sponsor segment from {formatTime(from)} to {formatTime(to)}.

)} -
+ ); })}