mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
Merge pull request #13073 from overleaf/ab-inr-test-fix
[web] Add missing optional when checking INR test assignment GitOrigin-RevId: a33e4f986ed017f3dc2b3fa025c6f9427b126ee8
This commit is contained in:
committed by
Copybot
parent
cc87a4ecea
commit
adc1e351af
@@ -834,13 +834,13 @@ async function _getRecommendedCurrency(req, res) {
|
||||
}
|
||||
// if the user has been detected as located in India (thus recommended INR as currency)
|
||||
// but is not part of the geo pricing test, we fall back to the default currency instead
|
||||
if (recommendedCurrency === 'INR' && assignment.variant !== 'inr') {
|
||||
if (recommendedCurrency === 'INR' && assignment?.variant !== 'inr') {
|
||||
recommendedCurrency = GeoIpLookup.DEFAULT_CURRENCY_CODE
|
||||
}
|
||||
return {
|
||||
recommendedCurrency,
|
||||
countryCode,
|
||||
geoPricingTestVariant: assignment.variant,
|
||||
geoPricingTestVariant: assignment?.variant,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user