Commit 236c9540 by Giang Tran

fix toVND

parent a957bd76
......@@ -88,11 +88,15 @@ const ItemCalculator = (props) => {
/>
<TextField
title={`${I18n.t('ProfitLoss')} (USD)`}
content={toPriceVnd(props.item.profit.USD)}
content={
props.item.profit.USD ? toPriceVnd(props.item.profit.USD) : '0'
}
/>
<TextField
title={`${I18n.t('ProfitLoss')} (VNĐ)`}
content={toPriceVnd(props.item.profit.VND)}
content={
props.item.profit.VND ? toPriceVnd(props.item.profit.VND) : '0'
}
/>
</View>
) : 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