Skip to content

Commit

Permalink
Checkout: Provide displayPrice to fetchReceiptCompleted action
Browse files Browse the repository at this point in the history
  • Loading branch information
drewblaisdell committed Mar 7, 2017
1 parent 1de5e4c commit 581a6d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/my-sites/upgrades/checkout/checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,12 @@ const Checkout = React.createClass( {
}

if ( receipt && receipt.receipt_id ) {
const receiptId = receipt.receipt_id;
const receiptId = receipt.receipt_id,
displayPrice = receipt.display_price;

this.props.fetchReceiptCompleted( receiptId, {
receiptId,
displayPrice,
purchases: this.flattenPurchases( this.props.transaction.step.data.purchases ),
failedPurchases: this.flattenPurchases( this.props.transaction.step.data.failed_purchases ),
} );
Expand Down

0 comments on commit 581a6d4

Please sign in to comment.