Skip to content

Commit

Permalink
Chore: better tailscale error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Nov 29, 2024
1 parent 5cc487a commit 276a1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/tailscale/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default function Component({ service }) {

const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");

if (statsError) {
return <Container service={service} error={statsError} />;
if (statsError || statsData?.message) {
return <Container service={service} error={statsError ?? statsData} />;
}

if (!statsData) {
Expand Down

0 comments on commit 276a1c3

Please sign in to comment.