Skip to content

Commit 4cf399f

Browse files
committed
Fix negated condition in tooltip costPerUnit
1 parent fd6438e commit 4cf399f

3 files changed

Lines changed: 1 addition & 1 deletion

File tree

padding:

Whitespace-only changes.

prefers-contrast:

Whitespace-only changes.

src/components/BMDashboard/MaterialCostCorrelation/MaterialCostCorrelationChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function CustomTooltip({ active, payload, darkMode }) {
6363
)}
6464
<div className={styles.tooltipHint}>
6565
<strong>Cost per Unit:</strong> $
66-
{data.costPerUnit != null ? data.costPerUnit.toFixed(2) : '0.00'}
66+
{data.costPerUnit == null ? '0.00' : data.costPerUnit.toFixed(2)}
6767
</div>
6868
</div>
6969
);

0 commit comments

Comments
 (0)