From 72124ba0d56c58cd435cfbb5f08f40e3316b102d Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Fri, 18 Mar 2022 22:10:50 +0700 Subject: [PATCH] fix(hide score in matchpage): hide-score-without-scores-in-response --- src/features/MatchPage/components/MatchProfileCard/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/MatchPage/components/MatchProfileCard/index.tsx b/src/features/MatchPage/components/MatchProfileCard/index.tsx index e61f19ee..e95033b8 100644 --- a/src/features/MatchPage/components/MatchProfileCard/index.tsx +++ b/src/features/MatchPage/components/MatchProfileCard/index.tsx @@ -54,7 +54,7 @@ export const MatchProfileCard = ({ profile }: Props) => { { - isScoreHidden + isScoreHidden || !team1.score || !team2.score ? '-' : `${team1.score} - ${team2.score}` }