Fix error detection in emby widget

pull/496/head
Michael Shamoon 2 years ago
parent 57fef06931
commit b25ba09e18

@ -171,7 +171,7 @@ export default function Component({ service }) {
}); });
} }
if (sessionsError) { if (sessionsError || sessionsData?.error) {
return <Container error={t("widget.api_error")} />; return <Container error={t("widget.api_error")} />;
} }

Loading…
Cancel
Save