mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 19:18:26 +01:00
wip
This commit is contained in:
@@ -63,7 +63,10 @@ export const PlayButton: React.FC<Props> = ({ item, url, ...props }) => {
|
||||
}, [url]);
|
||||
|
||||
const onPress = async () => {
|
||||
if (!url || !item) return;
|
||||
if (!url || !item) {
|
||||
console.warn("No URL or item provided to PlayButton");
|
||||
return;
|
||||
}
|
||||
if (!client) {
|
||||
router.push("/play-video");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user