`countryCode` should be tested as a lower case string
Closed this issue · 1 comments
robiseb commented
Description
countryCode
string variable should be tested as a lower case string due to
countryCode = json.country.toLowerCase();
Relevant Context
In IP geolocation request code section.
if (countryCode === "RU") return redirect();
Solution
Change "RU"
by "ru"
like
if (countryCode === "ru") return redirect();
AnandChowdhary commented
Thanks so much, all fixed!