diff --git a/services/web/app/src/infrastructure/GeoIpLookup.js b/services/web/app/src/infrastructure/GeoIpLookup.js index 27e7874055..07b90308a7 100644 --- a/services/web/app/src/infrastructure/GeoIpLookup.js +++ b/services/web/app/src/infrastructure/GeoIpLookup.js @@ -15,6 +15,7 @@ const currencyMappings = { NO: 'NOK', CA: 'CAD', SE: 'SEK', + SG: 'SGD', } const validCurrencyParams = Object.values(currencyMappings).concat(['EUR']) diff --git a/services/web/test/unit/src/infrastructure/GeoIpLookupTest.js b/services/web/test/unit/src/infrastructure/GeoIpLookupTest.js index 8fafd64b4b..b67e24fe71 100644 --- a/services/web/test/unit/src/infrastructure/GeoIpLookupTest.js +++ b/services/web/test/unit/src/infrastructure/GeoIpLookupTest.js @@ -47,6 +47,7 @@ describe('GeoIpLookup', function () { expect(this.GeoIpLookup.isValidCurrencyParam('USD')).to.equal(true) expect(this.GeoIpLookup.isValidCurrencyParam('AUD')).to.equal(true) expect(this.GeoIpLookup.isValidCurrencyParam('EUR')).to.equal(true) + expect(this.GeoIpLookup.isValidCurrencyParam('SGD')).to.equal(true) expect(this.GeoIpLookup.isValidCurrencyParam('WAT')).to.equal(false) expect(this.GeoIpLookup.isValidCurrencyParam('NON')).to.equal(false) expect(this.GeoIpLookup.isValidCurrencyParam('LOL')).to.equal(false)