Skip to content

Commit

Permalink
set step to 1 in session storage when clicking on the start link
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-solo committed Nov 12, 2024
1 parent 4374084 commit e16c268
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ const Home: NextPage<{ adobeAnalyticsUrl: string }> = ({
<Button
text={tsln.startBenefitsEstimator}
style="primary"
onClick={(e) => router.push('/questions')}
onClick={(e) => {
sessionStorage.setItem('step', '1')
router.push('/questions')
}}
custom="w-auto justify-center mb-4"
attributes={{
[AA_CUSTOMCLICK]: `${AA_BUTTON_CLICK_ATTRIBUTE}:${tsln.startBenefitsEstimator}`,
Expand Down

0 comments on commit e16c268

Please sign in to comment.