diff --git a/CHANGELOG.md b/CHANGELOG.md index a2e2390e30..1c95b65312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2018-XX-XX +- [fix] Fix wrong booking title on listing page that has been introduced in #969. + [#987](https://github.com/sharetribe/flex-template-web/pull/987) - [fix] yarn.lock file was not up to date [#986](https://github.com/sharetribe/flex-template-web/pull/986) - [add] Add an image of fork button to the deploy to production guide. diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index 304549a889..9fa61c00b7 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -229,9 +229,8 @@ export class ListingPageComponent extends Component { ); - const bookingTitle = intl.formatMessage( - { id: 'ListingPage.bookingSubTitle' }, - { title: richTitle } + const bookingTitle = ( + ); const bookingSubTitle = intl.formatMessage({ id: 'ListingPage.bookingSubTitle' }); diff --git a/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap b/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap index 03d7922570..1962c361a1 100644 --- a/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap +++ b/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap @@ -307,7 +307,22 @@ exports[`ListingPage matches snapshot 1`] = ` onSubmit={[Function]} subTitle="ListingPage.bookingSubTitle" timeSlots={null} - title="ListingPage.bookingSubTitle" + title={ + + + listing1 + + title + + , + } + } + /> + } unitType="line-item/night" />