From 5f35c6aaa2d68edc07170ada01986f17675b3a1c Mon Sep 17 00:00:00 2001 From: Zoia <43918051+zizi62@users.noreply.github.com> Date: Thu, 25 Mar 2021 14:15:40 +0300 Subject: [PATCH] feat: add live (#342) --- src/features/MatchPage/index.tsx | 2 +- src/requests/getMatchInfo.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/features/MatchPage/index.tsx b/src/features/MatchPage/index.tsx index 138f1630..5d376495 100644 --- a/src/features/MatchPage/index.tsx +++ b/src/features/MatchPage/index.tsx @@ -10,7 +10,7 @@ import { Wrapper } from './styled' const MatchPage = () => { const profile = useMatchProfile() - const isLiveMatch = !profile?.calc + const isLiveMatch = profile?.live return ( diff --git a/src/requests/getMatchInfo.tsx b/src/requests/getMatchInfo.tsx index 72ad90f4..0715eb5a 100644 --- a/src/requests/getMatchInfo.tsx +++ b/src/requests/getMatchInfo.tsx @@ -5,8 +5,6 @@ import { import { callApi } from 'helpers' -import { MatchStatuses } from 'features/HeaderFilters' - const proc = PROCEDURES.get_match_info type Team = { @@ -19,7 +17,7 @@ type Team = { export type MatchInfo = { calc: boolean, date: string, - stream_status: MatchStatuses, + live: boolean, team1: Team, team2: Team, tournament: {