From 247f90d1292932e508863d16d0f174d02930a1b6 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 1 May 2022 16:26:03 +0100 Subject: [PATCH] web/lukegbcom/wifi-qrcode: if no psk, don't show the password: line --- web/lukegbcom/pages/tools/wifi-qrcode.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/lukegbcom/pages/tools/wifi-qrcode.js b/web/lukegbcom/pages/tools/wifi-qrcode.js index 41cf24d459..25ddb4baff 100644 --- a/web/lukegbcom/pages/tools/wifi-qrcode.js +++ b/web/lukegbcom/pages/tools/wifi-qrcode.js @@ -36,8 +36,6 @@ function generateQRString(details) { function WifiQRCode({ details }) { const hasLogo = details.eventName.match(/^http[s]?:/) - console.log(generateQRString(details)) - return (
@@ -46,7 +44,7 @@ function WifiQRCode({ details }) {

{details.eventName}

}

SSID: {details.ssid}

-
Password: {details.psk}
+ {details.psk ?
Password: {details.psk}
: null}