diff --git a/halving.js b/halving.js index 2a22c6d..5b551c4 100644 --- a/halving.js +++ b/halving.js @@ -428,11 +428,9 @@ async function getTransactions() { const maxAmountUSD = (maxAmountBTC * exchangeRate).toFixed(2); const minAmountUSD = (minAmountBTC * exchangeRate).toFixed(2); - document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(maxAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(maxAmountUSD)} USD`; - document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(minAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(minAmountUSD)} USD`; - - //document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(formatAmount(maxTransaction.out[0].value))} BTC | ${formatNumberWithCommas(formatAmount(maxAmountUSD))} USD`; - //document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(formatAmount(minTransaction.out[0].value))} BTC | ${formatNumberWithCommas(formatAmount(minAmountUSD))} USD`; + document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(formatAmount(maxAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(formatAmount(maxAmountUSD))} USD`; + document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(formatAmount(minAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(formatAmount(minAmountUSD))} USD`; + } catch (error) { console.error(error); }