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,