Because the content on the landing page felt static I added a random function to pick between the four list types.

This commit is contained in:
2018-01-09 23:12:27 +01:00
parent 4f98f2fd23
commit 0b42cf7f12

View File

@@ -47,7 +47,7 @@ class SearchRequest extends React.Component {
// this.setState({responseMovieList: null})
this.resetPageNumber();
this.state.loadResults = true;
this.fetchTmdbList('discover');
this.fetchTmdbList(this.allowedListTypes[Math.floor(Math.random()*this.allowedListTypes.length)]);
}
// Handles all errors of the response of a fetch call