Fix movie refresh button while fetching

This commit is contained in:
Grégoire Delattre 2016-11-24 13:22:05 +01:00
parent 9c68857934
commit c699466474

View File

@ -75,6 +75,9 @@ class MovieButtons extends React.Component {
} }
handleClick(e) { handleClick(e) {
e.preventDefault(); e.preventDefault();
if (this.props.fetching) {
return
}
this.props.getMovieDetails(this.props.movie.imdb_id); this.props.getMovieDetails(this.props.movie.imdb_id);
} }
render() { render() {