Skip to content

Commit

Permalink
fix: Back navigation after closing tax add/edit form
Browse files Browse the repository at this point in the history
Co-Authored-By: Jose M <[email protected]>
  • Loading branch information
ansmonjol and josemoyab committed Apr 3, 2024
1 parent f499437 commit 087924c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styled from 'styled-components'

import { Button, NavigationTab, Typography } from '~/components/designSystem'
import {
CREATE_TAX_ROUTE,
EMAILS_SETTINGS_ROUTE,
HOME_ROUTE,
INTEGRATIONS_ROUTE,
Expand All @@ -14,6 +15,7 @@ import {
settingRoutes,
SETTINGS_ROUTE,
TAXES_SETTINGS_ROUTE,
UPDATE_TAX_ROUTE,
} from '~/core/router'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useLocationHistory } from '~/hooks/core/useLocationHistory'
Expand Down Expand Up @@ -67,7 +69,7 @@ const Settings = () => {
}
return acc
},
[],
[CREATE_TAX_ROUTE, UPDATE_TAX_ROUTE],
)

return (
Expand Down

0 comments on commit 087924c

Please sign in to comment.