Skip to content

Commit

Permalink
Fix error detection in emby widget
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Nov 6, 2022
1 parent 57fef06 commit b25ba09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/emby/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function Component({ service }) {
});
}

if (sessionsError) {
if (sessionsError || sessionsData?.error) {
return <Container error={t("widget.api_error")} />;
}

Expand Down

0 comments on commit b25ba09

Please sign in to comment.