From 2c3bb15355385294185bf4111f1646a0075dbe27 Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Thu, 27 Dec 2018 11:31:18 +0200 Subject: [PATCH] Fix wrong booking title on listing page --- src/containers/ListingPage/ListingPage.js | 5 ++--- .../__snapshots__/ListingPage.test.js.snap | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index 304549a8..9fa61c00 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 03d79225..1962c361 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" />