From 1de5e4cc2e9d30bfb31fd8f26bfd566ac6b8941b Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Mon, 6 Mar 2017 12:47:42 +0100 Subject: [PATCH] Checkout: Add copy changes to the Thank You page for the domain only site flow --- .../my-sites/upgrades/checkout-thank-you/index.jsx | 12 ++++++------ client/state/receipts/assembler.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/my-sites/upgrades/checkout-thank-you/index.jsx b/client/my-sites/upgrades/checkout-thank-you/index.jsx index b0fcf573d84df..5122eb70108ed 100644 --- a/client/my-sites/upgrades/checkout-thank-you/index.jsx +++ b/client/my-sites/upgrades/checkout-thank-you/index.jsx @@ -16,7 +16,7 @@ import Card from 'components/card'; import ChargebackDetails from './chargeback-details'; import CheckoutThankYouFeaturesHeader from './features-header'; import CheckoutThankYouHeader from './header'; -import { domainManagementEdit } from 'my-sites/upgrades/paths'; +import { domainManagementList } from 'my-sites/upgrades/paths'; import DomainMappingDetails from './domain-mapping-details'; import DomainRegistrationDetails from './domain-registration-details'; import { fetchReceipt } from 'state/receipts/actions'; @@ -242,19 +242,19 @@ const CheckoutThankYou = React.createClass( { } if ( this.props.domainOnlySiteFlow && purchases.length > 0 && ! failedPurchases.length ) { - const [ purchase, domainName ] = findPurchaseAndDomain( purchases, isDomainRegistration ); + const domainName = find( purchases, isDomainRegistration ).meta; return (
{ this.renderConfirmationNotice() }
); diff --git a/client/state/receipts/assembler.js b/client/state/receipts/assembler.js index e75adddb4fe8a..410b56f1833bf 100644 --- a/client/state/receipts/assembler.js +++ b/client/state/receipts/assembler.js @@ -1,9 +1,9 @@ export function createReceiptObject( data ) { return { receiptId: data.receipt_id, + displayPrice: data.display_price, purchases: data.purchases.map( purchase => { return { - displayPrice: purchase.display_price, freeTrial: purchase.free_trial, isDomainRegistration: Boolean( purchase.is_domain_registration ), meta: purchase.meta,