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 },
});
else
router.replace(
data.nextEpisode ? `/watch/${data.nextEpisode.slug}` : `/show/${data.show!.slug}`,
undefined,
{ experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false } },
);
router.replace(next ?? `/show/${data.show!.slug}`, undefined, {
experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false },
});
}}
{...css(StyleSheet.absoluteFillObject)}
/>