NaN bug fix

This commit is contained in:
Senad Uka
2019-10-03 12:21:16 +02:00
parent dd381db50e
commit 5c5931f3ed
5 changed files with 65 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ const SingleIncidentsTable = props => {
}
break;
case 'totalChargeFee':
const totalFee = props.value ? props.value : props.row['_original'].incidentPrice;
const totalFee = (props.row['_original'].incidentPrice || props.value) || 0;
const totalFeeFormatted = parseFloat(totalFee).toFixed(2);
cellValue = `$ ${totalFeeFormatted}`;
columnContentsAlignment = columnAlignments.right;