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-27 05:25:06 -07:00 committed by Copybot
parent 08596f1fb3
commit 8c792dd63e

View file

@ -105,6 +105,7 @@ function selectViewFromHash() {
if (view) { if (view) {
// make sure the selected view is valid // make sure the selected view is valid
if (document.querySelector(`[data-ol-plans-v2-view-tab="${view}"]`)) { if (document.querySelector(`[data-ol-plans-v2-view-tab="${view}"]`)) {
currentMonthlyAnnualSwitchValue = 'annual'
selectTab(view) selectTab(view)
// clear the hash so it doesn't persist when switching plans // clear the hash so it doesn't persist when switching plans
window.location.hash = '' window.location.hash = ''