mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-28 19:06:29 -05:00
check if null
This commit is contained in:
parent
620c147dbd
commit
43a5a907c0
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ class Utils {
|
|||
|
||||
static isInterfaceEnabled(iface) {
|
||||
const rawValue = iface.enabled ?? iface.interface_enabled;
|
||||
const value = rawValue?.toString().toLowerCase();
|
||||
const value = rawValue?.toString()?.toLowerCase();
|
||||
return value === "on" || value === "yes" || value === "true";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue