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 = ``;