Skip to content

Commit

Permalink
Fix type 'onCoverPhotoChange' -> 'onCoverPhotoChanged'
Browse files Browse the repository at this point in the history
  • Loading branch information
Photonios committed Aug 23, 2019
1 parent dfc6960 commit bdfe37c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/image-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ var ImageGallery = function (_React$Component) {
var newCoverPhoto = this.props.items[this.props.startIndex] || {};
var coverPhotoChanged = prevCoverPhoto.id !== newCoverPhoto.id;

if (coverPhotoChange && this.props.onItemsGalleryChange) {
if (coverPhotoChanged && this.props.onItemsGalleryChange) {
// call the callback function
this.props.onItemsGalleryChange();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-image-gallery",
"version": "0.8.22-sl",
"version": "0.8.23-sl",
"description": "React carousel image gallery component with thumbnail and mobile support",
"main": "./build/image-gallery.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default class ImageGallery extends React.Component {
const newCoverPhoto = this.props.items[this.props.startIndex] || {};
const coverPhotoChanged = prevCoverPhoto.id !== newCoverPhoto.id;

if (coverPhotoChange && this.props.onItemsGalleryChange) {
if (coverPhotoChanged && this.props.onItemsGalleryChange) {
// call the callback function
this.props.onItemsGalleryChange();
}
Expand Down

0 comments on commit bdfe37c

Please sign in to comment.