Correctly handle undefined carrier. #97

This commit is contained in:
Ian Webster 2016-12-10 17:47:36 -08:00
parent 776231dd09
commit d48b2e67a9

View File

@ -34,7 +34,7 @@ function sendText(phone, message, carrier, region, cb) {
region = region || 'us';
var providers_list;
if (carrier !== null) {
if (carrier) {
providers_list = carriers[carrier];
} else {
providers_list = providers[region];