fix(#ott1881): fixed matchcard count bug

keep-around/9eeef2b1e7e2c90aea856c6a4516998d01dac7af
Farber Denis 4 years ago
parent 100b3f5493
commit 9eeef2b1e7
  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