From b87f9ea6227c74eb08ec5e6425c511bd3a4c7dd9 Mon Sep 17 00:00:00 2001 From: Mirlan Date: Tue, 1 Dec 2020 17:39:08 +0600 Subject: [PATCH] fix(598): clickability of inaccessable match (#233) --- src/features/MatchCard/hooks.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/MatchCard/hooks.tsx b/src/features/MatchCard/hooks.tsx index 3c0f3f40..17ca2837 100644 --- a/src/features/MatchCard/hooks.tsx +++ b/src/features/MatchCard/hooks.tsx @@ -6,6 +6,7 @@ import { useToggle } from 'hooks' import type { Match } from 'features/Matches' export const useCard = ({ + accessibleBySubscription, accessibleInUsersCountry, hasVideo, }: Match) => { @@ -18,6 +19,7 @@ export const useCard = ({ const isClickable = ( hasVideo && accessibleInUsersCountry + && accessibleBySubscription ) const flipCard = useCallback(() => {