ensure unique key for skipped message map

This commit is contained in:
Simon
2024-12-23 11:53:59 +07:00
parent f8a0577451
commit 058dda7de4

View File

@@ -247,17 +247,17 @@ const VideoPlayer = ({
</h4> </h4>
)} )}
{/* {Object.values(skippedSegments).map(({ from, to }) => { {Object.values(skippedSegments).map(({ from, to }, index) => {
return ( return (
<> <div key={`${from}-${to}-${index}`}>
{from !== 0 && to !== 0 && ( {from !== 0 && to !== 0 && (
<h3> <h3>
Skipped sponsor segment from {formatTime(from)} to {formatTime(to)}. Skipped sponsor segment from {formatTime(from)} to {formatTime(to)}.
</h3> </h3>
)} )}
</> </div>
); );
})} */} })}
</> </>
)} )}
</div> </div>