From 54afd81817a4da001175c30f582ce497bb134aa3 Mon Sep 17 00:00:00 2001 From: tgpethan Date: Sun, 7 Feb 2021 01:25:17 +0000 Subject: [PATCH] Fix an oops --- server/countryHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/countryHelper.js b/server/countryHelper.js index b996944..82438b2 100644 --- a/server/countryHelper.js +++ b/server/countryHelper.js @@ -257,7 +257,7 @@ module.exports = { getCountryID:function(code = "") { // Get id of a country from a 2 char code code = code.toUpperCase(); - if (countryCodes[s] != null) return countryCodes[s]; + if (countryCodes[code] != null) return countryCodes[code]; else return 0; },