Fix movie refresh button while fetching
This commit is contained in:
parent
9c68857934
commit
c699466474
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user