add case for when amount is undefined in formatCredits instead of returning '0'

This commit is contained in:
Clayton Hickey 2020-05-26 08:36:38 -04:00
parent d2079111b3
commit ed68f01ff5
2 changed files with 4 additions and 0 deletions

2
dist/bundle.es.js vendored
View file

@ -2665,6 +2665,8 @@ function numberWithCommas(x) {
}
function formatCredits(amount, precision, shortFormat = false) {
if (!amount) return '--';
let actualAmount = parseFloat(amount);
let actualPrecision = parseFloat(precision);
let suffix = '';

View file

@ -5,6 +5,8 @@ function numberWithCommas(x) {
}
export function formatCredits(amount, precision, shortFormat = false) {
if (!amount) return '--';
let actualAmount = parseFloat(amount);
let actualPrecision = parseFloat(precision);
let suffix = '';