Make annual value is the default when opening new plans page with hashchange event

GitOrigin-RevId: b2525c314f06a990492112a7280e921987205169
This commit is contained in:
M Fahru
2022-09-28 08:08:02 +00:00
committed by Copybot
parent ee5a5c12ce
commit c69c72f9e6
@@ -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 = ''