fix(598): clickability of inaccessable match (#233)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Mirlan 5 years ago committed by GitHub
parent d8c1e7b2bc
commit b87f9ea622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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(() => {

Loading…
Cancel
Save