Merge branch 'OTT-1881-count-bug-fix' into 'preprod'

fix(#ott1881): fixed matchcard count bug

See merge request frontend/spa_instat_tv!578
keep-around/e1403c8350cc28f1615795241a9b94c9b2a48f0a
Макситалиев Мирлан 4 years ago
commit e1403c8350
  1. 4
      src/features/MatchCard/CardFrontside/index.tsx

@ -52,7 +52,6 @@ export const CardFrontside = ({
}: Props) => {
const {
access,
calc,
date,
formattedDate,
hasVideo,
@ -71,8 +70,7 @@ export const CardFrontside = ({
const { isScoreHidden } = useMatchSwitchesStore()
const isInFuture = getUnixTime(date) > getUnixTime(new Date())
const showScore = !(
!calc
|| isInFuture
isInFuture
|| isScoreHidden
) || (live && !isScoreHidden)
const tournamentInFavorites = isInFavorites(ProfileTypes.TOURNAMENTS, tournament.id)

Loading…
Cancel
Save