From 4bada2d9f64d6221e8700d253ed3c723ee91647a Mon Sep 17 00:00:00 2001 From: Elia Zammuto Date: Sun, 23 Jan 2022 17:31:32 +0100 Subject: [PATCH] Update pin.html --- assets/web/pin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/web/pin.html b/assets/web/pin.html index c39f4863..b584ccc3 100644 --- a/assets/web/pin.html +++ b/assets/web/pin.html @@ -28,7 +28,7 @@ fetch("/api/pin", { method: "POST", body: b }) .then((response) => response.json()) .then((response) => { - if (response.status && response.status === "true") { + if (response.status.toString().toLowerCase() === "true") { document.querySelector( "#status" ).innerHTML = ``;