Fix donations field: use singular donation from backend
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
const bal = data.balance != null ? data.balance : null;
|
||||
const unc = data.unconfirmed_balance != null ? data.unconfirmed_balance : null;
|
||||
document.getElementById('webalance').innerHTML = bal ? (unc ? bal + ' (' + unc + ')' : bal) : '—';
|
||||
document.getElementById('wedonations').innerHTML = data.donations != null ? data.donations : '—';
|
||||
document.getElementById('wedonations').innerHTML = data.donation != null ? data.donation : '—';
|
||||
document.getElementById('weversion').innerHTML = data.version||'—';
|
||||
document.getElementById('weexpiry').innerHTML = '<b>' + (data.expiry_date || '—') + '</b>';
|
||||
document.getElementById('weupdate').innerHTML = data.last_update || '—';
|
||||
|
||||
Reference in New Issue
Block a user