Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying improper season, episode selection should display error and random episode #13

Open
hawkins opened this issue Apr 2, 2017 · 1 comment

Comments

@hawkins
Copy link
Owner

hawkins commented Apr 2, 2017

Should a season and episode combination not tie back to a real episode, a random episode should be selected and an error message should be shown on screen.

Something along the lines of...

if (season && episode) {
  this.state = {
    episode: getEpisodeDetails(season, episode)
  };
  if (this.state.episode === undefined) {
    // Display error
    // ...
    // Select random episode
    this.state.episode = getEpisodeDetails(season, episode);
  }
}
@hawkins
Copy link
Owner Author

hawkins commented Apr 3, 2017

Not sure how best to style this yet, so for now I've added a commit to make this issue at least load a random episode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant