Skip to content

Commit 3e99fdc

Browse files
authored
Merge pull request #45 from keepsimpleio/hotfix/links-from-longevity
hotfix: prevent undefined state of longevity mobile navigation
2 parents f45352b + 52094bd commit 3e99fdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/longevity/MobileNavigation/MobileNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const MobileNavigation: FC = () => {
249249
onClick={() => nextPathname && router.push(nextPathname.path)}
250250
>
251251
<span className={styles.nextStaticTxt}>{nextBtn}</span>{' '}
252-
<span className={styles.nextPage}> {nextPathname.name}</span>
252+
<span className={styles.nextPage}> {nextPathname?.name}</span>
253253
</BorderedPill>
254254
</>
255255
);

0 commit comments

Comments
 (0)