remove NaN bug for incident charge fee

This commit is contained in:
Bilal Catic
2019-10-02 23:23:06 +02:00
parent 5202e05325
commit bc6b7b7268

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;