Skip to content

Commit

Permalink
Merge pull request #54 from hnez/fix-web-disconnected-errors
Browse files Browse the repository at this point in the history
web: TacComponents: fix wrong notifications on disconnect
  • Loading branch information
hnez authored Jan 15, 2024
2 parents d44f5ca + ffe06e3 commit a807941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/TacComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export function OverTemperatureNotification() {
<Alert
statusIconAriaLabel="Warning"
type="warning"
visible={warning !== null && warning !== "Okay"}
visible={warning !== undefined && warning !== "Okay"}
header="Your LXA TAC is overheating"
>
The LXA TAC's temperature is{" "}
Expand Down Expand Up @@ -608,7 +608,7 @@ export function UsbOverloadNotification() {
<Alert
statusIconAriaLabel="Warning"
type="warning"
visible={overload !== null}
visible={overload !== undefined && overload !== null}
header={header}
>
Disconnect {detail} or use a powered hub to resolve this issue.
Expand Down

0 comments on commit a807941

Please sign in to comment.