|
|
|
@ -21,6 +21,7 @@ const prepareMatch = ({ |
|
|
|
tournament, |
|
|
|
tournament, |
|
|
|
}: Match) => { |
|
|
|
}: Match) => { |
|
|
|
const date = new Date(matchDate) |
|
|
|
const date = new Date(matchDate) |
|
|
|
|
|
|
|
const accessable = sub && access |
|
|
|
return { |
|
|
|
return { |
|
|
|
accessibleBySubscription: sub, |
|
|
|
accessibleBySubscription: sub, |
|
|
|
accessibleInUsersCountry: access, |
|
|
|
accessibleInUsersCountry: access, |
|
|
|
@ -29,10 +30,12 @@ const prepareMatch = ({ |
|
|
|
formattedDate: format(date, 'dd.MM.yy'), |
|
|
|
formattedDate: format(date, 'dd.MM.yy'), |
|
|
|
hasVideo: has_video, |
|
|
|
hasVideo: has_video, |
|
|
|
id, |
|
|
|
id, |
|
|
|
isClickable: (sub && access && ( |
|
|
|
isClickable: live |
|
|
|
has_video |
|
|
|
? accessable |
|
|
|
|
|
|
|
: (accessable && calc && ( |
|
|
|
|
|
|
|
has_video |
|
|
|
|| storage |
|
|
|
|| storage |
|
|
|
)), |
|
|
|
)), |
|
|
|
live, |
|
|
|
live, |
|
|
|
preview, |
|
|
|
preview, |
|
|
|
sportName: getSportLexic(sport), |
|
|
|
sportName: getSportLexic(sport), |
|
|
|
|