chore: make COUNTRY lowercase

Fixes #662

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-11-02 15:27:33 -05:00
parent e00dafe8ff
commit 430f3ed220
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export class NvidiaCart {
}
public get regionInfo(): NvidiaRegionInfo {
const country = config.store.country;
const country = config.store.country.toLowerCase();
const regionInfo = regionInfos.get(country);
if (!regionInfo) {
throw new Error(`Unknown country ${country}`);
+1 -1
View File
@@ -6,7 +6,7 @@ import {config} from '../../../config';
import {timestampUrlParameter} from '../../timestamp-url-parameter';
function getRegionInfo(): NvidiaRegionInfo {
let country = config.store.country;
let country = config.store.country.toLowerCase();
if (!regionInfos.has(country)) {
country = 'usa';
}