Skip to content

Commit bb8583b

Browse files
committed
remove noStreams from Streams
1 parent c1804d0 commit bb8583b

File tree

1 file changed

+0
-6
lines changed
  • source/views/streaming/streams

1 file changed

+0
-6
lines changed

source/views/streaming/streams/list.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ export class StreamListView extends React.PureComponent {
3939
state: {
4040
error: ?Error,
4141
loaded: boolean,
42-
noStreams: boolean,
4342
refreshing: boolean,
4443
streams: Array<{title: string, data: Array<StreamType>}>,
4544
} = {
4645
error: null,
4746
loaded: false,
48-
noStreams: false,
4947
refreshing: false,
5048
streams: [],
5149
}
@@ -87,10 +85,6 @@ export class StreamListView extends React.PureComponent {
8785
const data = await fetchJson(streamsAPI)
8886
const streams = data.results
8987

90-
if (streams.length > 1) {
91-
this.setState(() => ({noStreams: true}))
92-
}
93-
9488
// force title-case on the stream types, to prevent not-actually-duplicate headings
9589
const processed = streams
9690
.filter(stream => stream.category !== 'athletics')

0 commit comments

Comments
 (0)