fix crash on skipping tracks

This commit is contained in:
Violet Caulfield
2025-02-09 08:53:28 -06:00
parent 2069a090b7
commit 249d3ce4e8

View File

@@ -154,7 +154,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
{/* playback progress goes here */}
<HorizontalSlider
value={progressState}
max={progress?.duration ?? 1}
max={progress && progress.duration > 0 ? progress.duration : 1}
width={width / 1.1}
props={{
// If user swipes off of the slider we should seek to the spot