From 430f3ed220686a42a4b84990899db940d429cf63 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Mon, 2 Nov 2020 15:27:33 -0500 Subject: [PATCH] chore: make `COUNTRY` lowercase Fixes #662 Signed-off-by: Jef LeCompte --- src/store/model/helpers/nvidia-cart.ts | 2 +- src/store/model/helpers/nvidia.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/model/helpers/nvidia-cart.ts b/src/store/model/helpers/nvidia-cart.ts index f08e621..1464276 100644 --- a/src/store/model/helpers/nvidia-cart.ts +++ b/src/store/model/helpers/nvidia-cart.ts @@ -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}`); diff --git a/src/store/model/helpers/nvidia.ts b/src/store/model/helpers/nvidia.ts index 2cd9743..3503a03 100644 --- a/src/store/model/helpers/nvidia.ts +++ b/src/store/model/helpers/nvidia.ts @@ -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'; }