Skip to content

Commit a807941

Browse files
authored
Merge pull request #54 from hnez/fix-web-disconnected-errors
web: TacComponents: fix wrong notifications on disconnect
2 parents d44f5ca + ffe06e3 commit a807941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/TacComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export function OverTemperatureNotification() {
570570
<Alert
571571
statusIconAriaLabel="Warning"
572572
type="warning"
573-
visible={warning !== null && warning !== "Okay"}
573+
visible={warning !== undefined && warning !== "Okay"}
574574
header="Your LXA TAC is overheating"
575575
>
576576
The LXA TAC's temperature is{" "}
@@ -608,7 +608,7 @@ export function UsbOverloadNotification() {
608608
<Alert
609609
statusIconAriaLabel="Warning"
610610
type="warning"
611-
visible={overload !== null}
611+
visible={overload !== undefined && overload !== null}
612612
header={header}
613613
>
614614
Disconnect {detail} or use a powered hub to resolve this issue.

0 commit comments

Comments
 (0)