forked from bitcoinafterlife/bal-welist-website
Fix donations field: use singular donation from backend
This commit is contained in:
@@ -579,7 +579,7 @@ document.getElementById('terms-accept').addEventListener('click', async function
|
||||
const balStr = result.balance != null ? fmt(result.balance) : null;
|
||||
const uncStr = result.unconfirmed_balance != null ? fmt(result.unconfirmed_balance) : null;
|
||||
document.getElementById('iv-balance').textContent = balStr ? (uncStr ? balStr + ' (' + uncStr + ')' : balStr) : '—';
|
||||
document.getElementById('iv-donations').textContent = result.donations != null ? fmt(result.donations) : '—';
|
||||
document.getElementById('iv-donations').textContent = result.donation != null ? fmt(result.donation) : '—';
|
||||
document.getElementById('iv-contact').textContent = document.getElementById('contact').value.trim() || '—';
|
||||
const weLink = result.id ? `/weinfo/${result.chain || chain}/${result.id}` : null;
|
||||
const weinfoEl = document.getElementById('iv-weinfo');
|
||||
|
||||
Reference in New Issue
Block a user