Handle the zero device case
This commit is contained in:
parent
cf21f1534d
commit
a47f05ab18
|
@ -37,6 +37,8 @@ async function updateUserIdMappings() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (wifiDevices.length == 0) return 0
|
||||||
|
|
||||||
const entries = wifiDevices.reduce(
|
const entries = wifiDevices.reduce(
|
||||||
(entries, device) =>
|
(entries, device) =>
|
||||||
entries +
|
entries +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user