diff --git a/src/frontend/js/Utils.js b/src/frontend/js/Utils.js index 4c8ca37..0a92957 100644 --- a/src/frontend/js/Utils.js +++ b/src/frontend/js/Utils.js @@ -143,11 +143,7 @@ class Utils { static isInterfaceEnabled(iface) { const rawValue = iface.enabled ?? iface.interface_enabled; - if (rawValue === true) { - // when enabled or interface_enabled is True it needs to return true. - return true; - } - const value = rawValue?.toLowerCase(); + const value = rawValue?.toString().toLowerCase(); return value === "on" || value === "yes" || value === "true"; }