Просмотр исходного кода

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
June Kelly 5 лет назад
Родитель
Сommit
5900dc3b4a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/frontend/js/pages/user/subscription/plans.js

+ 1 - 1
services/web/frontend/js/pages/user/subscription/plans.js

@@ -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')