From 43461da6ad25c0cf2fbd30db2528ee5224336eaf Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Mon, 23 May 2022 19:28:02 +0700 Subject: [PATCH] fix(#2245): fix redirect for brazil --- src/features/BuyMatchPopup/components/BrazilPayment/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/BuyMatchPopup/components/BrazilPayment/hooks.tsx b/src/features/BuyMatchPopup/components/BrazilPayment/hooks.tsx index f6c1cf9c..5caaf332 100644 --- a/src/features/BuyMatchPopup/components/BrazilPayment/hooks.tsx +++ b/src/features/BuyMatchPopup/components/BrazilPayment/hooks.tsx @@ -60,7 +60,7 @@ export const useBrazilPayment = ({ setIsOpenBrasilian(false) const accessMatch = await getMatchInfo(sportType, id) - if (!accessMatch?.access) { + if (accessMatch?.access) { close() history.push(matchLink) }