correct boolean type
authorLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 20:09:16 +0000 (22:09 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 20:09:16 +0000 (22:09 +0200)
public/trivabble.js

index 1f65fa768810b887597351efaca45917742e6890..dad11929d3ba6f2c8ee5d12ba354d5b07f510ef3 100644 (file)
@@ -85,7 +85,7 @@
 
             /* cast from string to type */
             if (type === "boolean") {
-                value = (value) ? true : false;
+                value = (value === "true");
             } else if (type === "number") {
                 value = Number(value);
             } else if (type === "object") {