remove NaN bug for incident charge fee
This commit is contained in:
@@ -118,7 +118,7 @@ const SingleIncidentsTable = props => {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'totalChargeFee':
|
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);
|
const totalFeeFormatted = parseFloat(totalFee).toFixed(2);
|
||||||
cellValue = `$ ${totalFeeFormatted}`;
|
cellValue = `$ ${totalFeeFormatted}`;
|
||||||
columnContentsAlignment = columnAlignments.right;
|
columnContentsAlignment = columnAlignments.right;
|
||||||
|
|||||||
Reference in New Issue
Block a user