From 78ba6bad8bdf9a2c459de2033370862b8b985942 Mon Sep 17 00:00:00 2001 From: Jose Sousa Date: Thu, 19 Nov 2020 17:02:57 +0000 Subject: [PATCH] refactor: removed action variable(only used once) --- new-lamassu-admin/src/routing/routes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/new-lamassu-admin/src/routing/routes.js b/new-lamassu-admin/src/routing/routes.js index 29dc8895..f8794710 100644 --- a/new-lamassu-admin/src/routing/routes.js +++ b/new-lamassu-admin/src/routing/routes.js @@ -257,7 +257,6 @@ const Routes = () => { const history = useHistory() const location = useLocation() - const action = history.action const { wizardTested } = useContext(AppContext) @@ -267,7 +266,7 @@ const Routes = () => { history.push('/wizard') } - const Transition = action === 'PUSH' && location.state ? Slide : Fade + const Transition = history.action === 'PUSH' && location.state ? Slide : Fade const transitionProps = Transition === Slide