mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Rename test to local-ccy-format-v2 to restart with clean data (#18115)
GitOrigin-RevId: 610495f41d69f8cac1a427ef7b8d64886bc5cdba
This commit is contained in:
@@ -88,7 +88,7 @@ async function plansPage(req, res) {
|
||||
const localCcyAssignment = await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'local-ccy-format'
|
||||
'local-ccy-format-v2'
|
||||
)
|
||||
const formatCurrency =
|
||||
localCcyAssignment.variant === 'enabled'
|
||||
@@ -143,7 +143,7 @@ async function userSubscriptionPage(req, res) {
|
||||
const localCcyAssignment = await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'local-ccy-format'
|
||||
'local-ccy-format-v2'
|
||||
)
|
||||
|
||||
const results =
|
||||
@@ -261,7 +261,7 @@ async function interstitialPaymentPage(req, res) {
|
||||
const localCcyAssignment = await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'local-ccy-format'
|
||||
'local-ccy-format-v2'
|
||||
)
|
||||
|
||||
res.render('subscriptions/interstitial-payment', {
|
||||
@@ -296,7 +296,7 @@ async function successfulSubscription(req, res) {
|
||||
const localCcyAssignment = await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'local-ccy-format'
|
||||
'local-ccy-format-v2'
|
||||
)
|
||||
const { personalSubscription } =
|
||||
await SubscriptionViewModelBuilder.promises.buildUsersSubscriptionViewModel(
|
||||
|
||||
@@ -25,7 +25,7 @@ export function updateGroupModalPlanPricing() {
|
||||
const modalEl = document.querySelector('[data-ol-group-plan-modal]')
|
||||
const { planCode, size, currency, usage } = getFormValues()
|
||||
|
||||
const localCcyVariant = getSplitTestVariant('local-ccy-format')
|
||||
const localCcyVariant = getSplitTestVariant('local-ccy-format-v2')
|
||||
|
||||
const { localizedPrice, localizedPerUserPrice } =
|
||||
createLocalizedGroupPlanPrice({
|
||||
|
||||
@@ -81,7 +81,7 @@ export const SubscriptionDashboardContext = createContext<
|
||||
>(undefined)
|
||||
|
||||
const getFormatCurrencies = () =>
|
||||
getSplitTestVariant('local-ccy-format') === 'enabled'
|
||||
getSplitTestVariant('local-ccy-format-v2') === 'enabled'
|
||||
? formatCurrencyLocalized
|
||||
: formatCurrencyDefault
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export function updateMainGroupPlanPricing() {
|
||||
? 'educational'
|
||||
: 'enterprise'
|
||||
|
||||
const localCcyVariant = getSplitTestVariant('local-ccy-format')
|
||||
const localCcyVariant = getSplitTestVariant('local-ccy-format-v2')
|
||||
const formatCurrency =
|
||||
localCcyVariant === 'enabled'
|
||||
? formatCurrencyLocalized
|
||||
|
||||
Reference in New Issue
Block a user