mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-18 00:40:05 -06:00
player fixes
This commit is contained in:
@@ -147,7 +147,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
|
||||
{/* playback progress goes here */}
|
||||
<HorizontalSlider
|
||||
value={progressState}
|
||||
max={progress!.duration}
|
||||
max={progress?.duration ?? 0}
|
||||
width={width / 1.1}
|
||||
props={{
|
||||
// If user swipes off of the slider we should seek to the spot
|
||||
@@ -187,7 +187,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
|
||||
</XStack>
|
||||
|
||||
<XStack flex={1} justifyContent="flex-end">
|
||||
<RunTimeSeconds>{progress!.duration}</RunTimeSeconds>
|
||||
<RunTimeSeconds>{progress?.duration ?? 0}</RunTimeSeconds>
|
||||
</XStack>
|
||||
</XStack>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user