Correctly handle undefined carrier. #97
This commit is contained in:
parent
776231dd09
commit
d48b2e67a9
@ -34,7 +34,7 @@ function sendText(phone, message, carrier, region, cb) {
|
|||||||
region = region || 'us';
|
region = region || 'us';
|
||||||
|
|
||||||
var providers_list;
|
var providers_list;
|
||||||
if (carrier !== null) {
|
if (carrier) {
|
||||||
providers_list = carriers[carrier];
|
providers_list = carriers[carrier];
|
||||||
} else {
|
} else {
|
||||||
providers_list = providers[region];
|
providers_list = providers[region];
|
||||||
|
Loading…
Reference in New Issue
Block a user