diff --git a/CHANGELOG.md b/CHANGELOG.md index 556189b3..06e77188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2019-XX-XX +- [fix] Allow ownListing as listing proptype in BookingPanel component. + [#1007](https://github.com/sharetribe/flex-template-web/pull/1007) - [add] Add info text about additional owners to `PayoutDetailsForm`. [#1006](https://github.com/sharetribe/flex-template-web/pull/1006) - [change] Default to English translation if the translation key is missing. After this update, new diff --git a/src/components/BookingPanel/BookingPanel.js b/src/components/BookingPanel/BookingPanel.js index ac4eb2e5..b8ff712c 100644 --- a/src/components/BookingPanel/BookingPanel.js +++ b/src/components/BookingPanel/BookingPanel.js @@ -168,7 +168,7 @@ BookingPanel.propTypes = { rootClassName: string, className: string, titleClassName: string, - listing: propTypes.listing.isRequired, + listing: oneOfType([propTypes.listing, propTypes.ownListing]), isOwnListing: bool, unitType: propTypes.bookingUnitType, onSubmit: func.isRequired,