Commit 236c9540 by Giang Tran

fix toVND

parent a957bd76
...@@ -88,11 +88,15 @@ const ItemCalculator = (props) => { ...@@ -88,11 +88,15 @@ const ItemCalculator = (props) => {
/> />
<TextField <TextField
title={`${I18n.t('ProfitLoss')} (USD)`} title={`${I18n.t('ProfitLoss')} (USD)`}
content={toPriceVnd(props.item.profit.USD)} content={
props.item.profit.USD ? toPriceVnd(props.item.profit.USD) : '0'
}
/> />
<TextField <TextField
title={`${I18n.t('ProfitLoss')} (VNĐ)`} title={`${I18n.t('ProfitLoss')} (VNĐ)`}
content={toPriceVnd(props.item.profit.VND)} content={
props.item.profit.VND ? toPriceVnd(props.item.profit.VND) : '0'
}
/> />
</View> </View>
) : null} ) : null}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment