diff --git a/dist/bundle.js b/dist/bundle.js index 2f05a0f..3f0921b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1921,8 +1921,7 @@ function doAbandonClaim(txid, nout) { var _myClaims$find = myClaims.find(function (claim) { return claim.txid === txid && claim.nout === nout; }), - claimId = _myClaims$find.claim_id, - name = _myClaims$find.name; + claimId = _myClaims$find.claim_id; dispatch({ type: ACTIONS.ABANDON_CLAIM_STARTED, @@ -4557,12 +4556,8 @@ function formatFullPrice(amount) { } function creditsToString(amount) { - var creditString = String(amount); - - if (creditString.includes('.')) { - return creditString; - } - return creditString + '.0'; + var creditString = parseFloat(amount).toFixed(8); + return creditString; } /***/ }), diff --git a/src/util/formatCredits.js b/src/util/formatCredits.js index f69bc34..e32b2d8 100644 --- a/src/util/formatCredits.js +++ b/src/util/formatCredits.js @@ -24,10 +24,6 @@ export function formatFullPrice(amount, precision = 1) { } export function creditsToString(amount) { - const creditString = String(amount); - - if (creditString.includes('.')) { - return creditString; - } - return `${creditString}.0`; + const creditString = parseFloat(amount).toFixed(8); + return creditString; }