Skip to content

Commit d8c419a

Browse files
committed
web: TacComponents: OverTemperatureNotification: fix note on disconnect
The onConnectionLost handler in mqtt.ts sets all subscribed topics to `undefined` on disconnect, so the `null` check never triggered. Check for `undefined` instead. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
1 parent d44f5ca commit d8c419a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/TacComponents.tsx

Lines changed: 1 addition & 1 deletion
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{" "}

0 commit comments

Comments
 (0)