From 24dae62fe27d75cfb12e6ac4d277255065911951 Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 2 Jan 2025 02:13:57 +0100 Subject: [PATCH] fix: browser back button functionality in merchant report page (#2927) --- apps/backoffice-v2/CHANGELOG.md | 6 ++++++ apps/backoffice-v2/package.json | 2 +- .../useMerchantMonitoringBusinessReportLogic.tsx | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/backoffice-v2/CHANGELOG.md b/apps/backoffice-v2/CHANGELOG.md index cc484b78a7..dac2af49a4 100644 --- a/apps/backoffice-v2/CHANGELOG.md +++ b/apps/backoffice-v2/CHANGELOG.md @@ -1,5 +1,11 @@ # @ballerine/backoffice-v2 +## 0.7.90 + +### Patch Changes + +- Fixed issue with browser back button on merchant report page + ## 0.7.89 ### Patch Changes diff --git a/apps/backoffice-v2/package.json b/apps/backoffice-v2/package.json index 8e111fa94d..414fcd4b3c 100644 --- a/apps/backoffice-v2/package.json +++ b/apps/backoffice-v2/package.json @@ -1,6 +1,6 @@ { "name": "@ballerine/backoffice-v2", - "version": "0.7.89", + "version": "0.7.90", "description": "Ballerine - Backoffice", "homepage": "https://github.com/ballerine-io/ballerine", "type": "module", diff --git a/apps/backoffice-v2/src/pages/MerchantMonitoringBusinessReport/hooks/useMerchantMonitoringBusinessReportLogic/useMerchantMonitoringBusinessReportLogic.tsx b/apps/backoffice-v2/src/pages/MerchantMonitoringBusinessReport/hooks/useMerchantMonitoringBusinessReportLogic/useMerchantMonitoringBusinessReportLogic.tsx index 9b57afcb9c..540c8cb1cc 100644 --- a/apps/backoffice-v2/src/pages/MerchantMonitoringBusinessReport/hooks/useMerchantMonitoringBusinessReportLogic/useMerchantMonitoringBusinessReportLogic.tsx +++ b/apps/backoffice-v2/src/pages/MerchantMonitoringBusinessReport/hooks/useMerchantMonitoringBusinessReportLogic/useMerchantMonitoringBusinessReportLogic.tsx @@ -39,6 +39,7 @@ export const useMerchantMonitoringBusinessReportLogic = () => { }); const [{ activeTab, isNotesOpen }] = useZodSearchParams( MerchantMonitoringBusinessReportSearchSchema, + { replace: true }, ); const navigate = useNavigate(); const onNavigateBack = useCallback(() => {