From 6cf3aa30ec254d178b0646c1ee25cdb513829b0d Mon Sep 17 00:00:00 2001 From: Andrey Mikhadyuk Date: Mon, 9 Oct 2023 12:27:14 +0300 Subject: [PATCH] fix global location usage --- .../commonCreation/components/CommonCreation/CommonCreation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/commonCreation/components/CommonCreation/CommonCreation.tsx b/src/pages/commonCreation/components/CommonCreation/CommonCreation.tsx index d6ed5f0865..a41966607f 100644 --- a/src/pages/commonCreation/components/CommonCreation/CommonCreation.tsx +++ b/src/pages/commonCreation/components/CommonCreation/CommonCreation.tsx @@ -20,7 +20,7 @@ const CommonCreation: FC = () => { const history = useHistory(); const { canGoBack, goBack } = useGoBack(); const isV04Version = matchRoute( - location.pathname, + history.location.pathname, ROUTE_PATHS.V04_COMMON_CREATION, { exact: true }, );