diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 93b8f23..bf31ba6 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -49,7 +49,7 @@ class Main extends Component { new_index += this.state.photos.length } this.setState({currentImage: new_index}) - this.carousel && this.carousel.setState({currentIndex: 1}) + this.carousel && this. carousel.setState({currentIndex: 1}) } onSubmit(event){ event.preventDefault(); @@ -102,7 +102,7 @@ class Main extends Component { {this.state.photoIsOpen && - {carousel} + {this.carousel} }