Fix next episode url for onEnd callback

This commit is contained in:
Zoe Roux 2024-03-08 18:57:09 +01:00
parent e3cc80d32a
commit 4bc54d350b

View File

@ -160,11 +160,9 @@ export const Player = ({
experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false }, experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false },
}); });
else else
router.replace( router.replace(next ?? `/show/${data.show!.slug}`, undefined, {
data.nextEpisode ? `/watch/${data.nextEpisode.slug}` : `/show/${data.show!.slug}`, experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false },
undefined, });
{ experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false } },
);
}} }}
{...css(StyleSheet.absoluteFillObject)} {...css(StyleSheet.absoluteFillObject)}
/> />