From c69c72f9e6e34599b5823d3e413e862637316d67 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Tue, 27 Sep 2022 05:25:06 -0700 Subject: [PATCH] Make annual value is the default when opening new plans page with hashchange event GitOrigin-RevId: b2525c314f06a990492112a7280e921987205169 --- .../js/pages/user/subscription/plans-v2/plans-v2-main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-main.js b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-main.js index 840202d3bc..f072babc1b 100644 --- a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-main.js +++ b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-main.js @@ -105,6 +105,7 @@ function selectViewFromHash() { if (view) { // make sure the selected view is valid if (document.querySelector(`[data-ol-plans-v2-view-tab="${view}"]`)) { + currentMonthlyAnnualSwitchValue = 'annual' selectTab(view) // clear the hash so it doesn't persist when switching plans window.location.hash = ''