From d48b2e67a94750b0733f94f6824bd74568fca599 Mon Sep 17 00:00:00 2001 From: Ian Webster Date: Sat, 10 Dec 2016 17:47:36 -0800 Subject: [PATCH] Correctly handle undefined carrier. #97 --- lib/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/text.js b/lib/text.js index a22334a..1b8b031 100644 --- a/lib/text.js +++ b/lib/text.js @@ -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];