- {item.demandBracket === 3 && AVG {item.avgSellPrice.toLocaleString()} CR}
- {item.stockBracket === 3 && AVG {item.avgBuyPrice.toLocaleString()} CR}
+ {item.avgSellPrice !== 0 && item.demandBracket === 3 && AVG {item.avgSellPrice.toLocaleString()} CR}
+ {item.avgBuyPrice !== 0 && item.stockBracket === 3 && AVG {item.avgBuyPrice.toLocaleString()} CR}
- {item.demandBracket === 3 &&
+ {item.demandBracket === 3 && item.avgSellPrice !== 0 &&
<>
{item.sellPrice > item.avgSellPrice && + {(item.sellPrice - item.avgSellPrice).toLocaleString()} CR}
{item.sellPrice < item.avgSellPrice && - {(item.avgSellPrice - item.sellPrice).toLocaleString()} CR}
>}
- {item.stockBracket === 3 &&
+ {item.stockBracket === 3 && item.avgBuyPrice !== 0 &&
<>
{item.buyPrice > item.avgBuyPrice && - {(item.buyPrice - item.avgBuyPrice).toLocaleString()} CR}
{item.buyPrice < item.avgBuyPrice && + {(item.avgBuyPrice - item.buyPrice).toLocaleString()} CR}
diff --git a/package.json b/package.json
index 8b12b75..1780e76 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ardent-www",
- "version": "0.63.1",
+ "version": "0.63.2",
"description": "Ardent Industry",
"main": "index.js",
"scripts": {
diff --git a/pages/commodity/[commodity-name]/index.js b/pages/commodity/[commodity-name]/index.js
index 825e945..54d1079 100644
--- a/pages/commodity/[commodity-name]/index.js
+++ b/pages/commodity/[commodity-name]/index.js
@@ -241,7 +241,7 @@ export default () => {
value={commodity.totalDemand}
style={{ maxWidth: '12rem', height: '1.25rem' }}
/>
- {commodity.totalDemand.toLocaleString()} T
+ {commodity.totalDemand.toLocaleString()} T
>
)
: }
@@ -260,7 +260,7 @@ export default () => {
value={commodity.totalStock}
style={{ maxWidth: '12rem', height: '1.25rem' }}
/>
- {commodity.totalStock.toLocaleString()} T
+ {commodity.totalStock.toLocaleString()} T
>
)
: }