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' import type { Match } from 'features/Matches'
export const useCard = ({ export const useCard = ({
accessibleBySubscription,
accessibleInUsersCountry, accessibleInUsersCountry,
hasVideo, hasVideo,
}: Match) => { }: Match) => {
@ -18,6 +19,7 @@ export const useCard = ({
const isClickable = ( const isClickable = (
hasVideo hasVideo
&& accessibleInUsersCountry && accessibleInUsersCountry
&& accessibleBySubscription
) )
const flipCard = useCallback(() => { const flipCard = useCallback(() => {

Loading…
Cancel
Save