mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Merge pull request #22304 from overleaf/mf-clean-up-latam-v2-test
[web] Tear down LATAM geo-pricing v2 split test GitOrigin-RevId: ca379c7ace5600aa31559c82e166c7ea67c6c26d
This commit is contained in:
@@ -396,13 +396,6 @@ async function projectListPage(req, res, next) {
|
||||
usersBestSubscription?.type === 'free' ||
|
||||
usersBestSubscription?.type === 'standalone-ai-add-on'
|
||||
) {
|
||||
const latamGeoPricingAssignment =
|
||||
await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'geo-pricing-latam-v2'
|
||||
)
|
||||
|
||||
const { countryCode, currencyCode } =
|
||||
await GeoIpLookup.promises.getCurrencyCode(req.ip)
|
||||
|
||||
@@ -411,9 +404,7 @@ async function projectListPage(req, res, next) {
|
||||
}
|
||||
showBrlGeoBanner = countryCode === 'BR'
|
||||
|
||||
showLATAMBanner =
|
||||
latamGeoPricingAssignment.variant === 'latam' &&
|
||||
['MX', 'CO', 'CL', 'PE'].includes(countryCode)
|
||||
showLATAMBanner = ['MX', 'CO', 'CL', 'PE'].includes(countryCode)
|
||||
// LATAM Banner needs to know which currency to display
|
||||
if (showLATAMBanner) {
|
||||
recommendedCurrency = currencyCode
|
||||
|
||||
Reference in New Issue
Block a user