feat: add live (#342)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Zoia 5 years ago committed by GitHub
parent 5869da52fd
commit 5f35c6aaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/features/MatchPage/index.tsx
  2. 4
      src/requests/getMatchInfo.tsx

@ -10,7 +10,7 @@ import { Wrapper } from './styled'
const MatchPage = () => {
const profile = useMatchProfile()
const isLiveMatch = !profile?.calc
const isLiveMatch = profile?.live
return (
<MainWrapper>

@ -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: {

Loading…
Cancel
Save