Merge pull request #5223 from overleaf/jpa-fix-annual-plan-codes

[web] de-ng plans page: fix plan codes for annual plans

GitOrigin-RevId: f8d94e8c495d9917267adf73e4d75bbd4f5264b2
This commit is contained in:
June Kelly 2021-09-24 10:22:28 +01:00 committed by Copybot
parent 4c04448d1c
commit 5900dc3b4a

View file

@ -60,7 +60,7 @@ function updateLinkTargets() {
const plan = el.getAttribute('data-ol-start-new-subscription')
const view = el.getAttribute('data-ol-item-view') || currentView
const suffix = view === 'annual' ? `_annual` : `_free_trial_7_days`
const suffix = view === 'annual' ? `-annual` : `_free_trial_7_days`
const planCode = `${plan}${suffix}`
const location = el.getAttribute('data-ol-location')