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

Loading…
Cancel
Save