mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 15:47:35 +00:00
chore: make COUNTRY lowercase
Fixes #662 Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -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}`);
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user