From 7a294c4cc34ebf249201675646dfb4f8279b79eb Mon Sep 17 00:00:00 2001 From: sovanna Date: Wed, 6 Nov 2019 11:20:06 +0900 Subject: [PATCH] fix(place-order): Uses global currency --- static/js/shop.jsx | 17 ++++++++++++----- static/js/shop_data.js | 17 +---------------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/static/js/shop.jsx b/static/js/shop.jsx index a696a397..af0edac9 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -801,6 +801,7 @@ class OrderSumary extends React.PureComponent { static get propTypes() { return { + currency: PropTypes.string, modes: PropTypes.array, currentMode: PropTypes.string, summary: PropTypes.array, @@ -861,6 +862,7 @@ class OrderSumary extends React.PureComponent { render() { const { + currency, modes, currentMode, summary, @@ -889,7 +891,7 @@ class OrderSumary extends React.PureComponent { {mode.name} - {`${mode.currency} ${mode.price}`} + {`${currency} ${mode.price}`}