add case for when amount is undefined in formatCredits instead of returning '0'
This commit is contained in:
parent
d2079111b3
commit
ed68f01ff5
2 changed files with 4 additions and 0 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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 = '';
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue