diff --git a/js/misc/modemManager.js b/js/misc/modemManager.js index 7c6c39a73..33088644d 100644 --- a/js/misc/modemManager.js +++ b/js/misc/modemManager.js @@ -71,7 +71,7 @@ function _findProviderForMccMnc(operator_name, operator_code) { // Tries to find the operator name corresponding to the given SID // function _findProviderForSid(sid) { - if (sid == 0) + if (!sid) return null; let mpd = _getMobileProvidersDatabase();