From 7ce276c267fdd7951e76fc8d3a3803b009e88163 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 9 Dec 2020 14:06:51 -0700 Subject: [PATCH] explicit null check --- ui/src/app/pages/server-routes/wifi/wifi.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/pages/server-routes/wifi/wifi.service.ts b/ui/src/app/pages/server-routes/wifi/wifi.service.ts index 9d244a1cb..0aa5cd7e9 100644 --- a/ui/src/app/pages/server-routes/wifi/wifi.service.ts +++ b/ui/src/app/pages/server-routes/wifi/wifi.service.ts @@ -60,7 +60,7 @@ export class WifiService { let message = 'Note. It may take a few minutes for your Embassy to reconnect over Tor. If it does not reconnect after 5 minutes, please unplug the device and plug it back in. You may also need to hard refresh your browser cache.' const alert = await this.alertCtrl.create({ header: `Connected to "${ssid}"`, - message: old ? message : 'You may now unplug your Embassy from Ethernet.

' + message, + message: old !== null ? message : 'You may now unplug your Embassy from Ethernet.

' + message, buttons: ['OK'], }) await alert.present()