fix: string abc type (#236)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Mirlan 5 years ago committed by GitHub
parent 0c46c74b16
commit ddb9b861d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/features/MatchPage/hooks/useVideoData.tsx
  2. 2
      src/requests/getVideos.tsx

@ -15,7 +15,7 @@ import { useSportNameParam, usePageId } from 'hooks'
import { useLastPlayPosition } from './useLastPlayPosition'
const filterByIds = (videos: Videos) => {
const zeroIdVideos = filter(videos, { abc: 0 })
const zeroIdVideos = filter(videos, { abc: '0' })
return isEmpty(zeroIdVideos) ? videos : zeroIdVideos
}

@ -3,7 +3,7 @@ import { callApi } from 'helpers'
type Video = {
/** id дорожки */
abc: number,
abc: string,
duration: number,
period: number,
quality: string,

Loading…
Cancel
Save