Skip to content

Commit

Permalink
fixup! Fix routing issue after switching account
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Oct 17, 2024
1 parent 5894a89 commit b4989f8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ const ProfileMenu = (): ReactElement => {
});
} else if (
router.pathname ===
'/accountLists/[accountListId]/reports/financialAccounts/[[...financialAccount]]'
'/accountLists/[accountListId]/reports/financialAccounts/[financialAccountId]/entries' ||
router.pathname ===
'/accountLists/[accountListId]/reports/financialAccounts/[financialAccountId]'
) {
router.push({

Check warning on line 202 in src/components/Layouts/Primary/TopBar/Items/ProfileMenu/ProfileMenu.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Layouts/Primary/TopBar/Items/ProfileMenu/ProfileMenu.tsx#L202

Added line #L202 was not covered by tests
pathname: '/accountLists/[accountListId]/reports/financialAccounts',
Expand Down

0 comments on commit b4989f8

Please sign in to comment.