bug fix: refresh balance
This commit is contained in:
parent
2065f41699
commit
08d9e113ce
|
|
@ -1422,7 +1422,7 @@ function refreshBalance() {
|
|||
.then(data => {
|
||||
if (data.success) {
|
||||
// Update the balance display
|
||||
const balanceElement = button.closest('.panel-body').querySelector('h2');
|
||||
const balanceElement = button.closest('.stat-card').querySelector('h2');
|
||||
balanceElement.textContent = '$' + parseFloat(data.balance).toFixed(4);
|
||||
|
||||
// Show success message
|
||||
|
|
|
|||
Loading…
Reference in New Issue