mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 12:53:00 +00:00
Fix header wallet balance update after job posting generation
- Update both header wallet balance (a[data-wallet-balance]) and page balance (walletBalance) - Header balance shows with emoji: 💰 X.XX AED - Page balance shows without emoji: X.XX AED - Both elements now update immediately after job posting generation - Complete wallet balance synchronization across the entire page 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8ffec49c93
commit
64c2d98de9
@ -710,7 +710,17 @@ const JobPostingUtils = {
|
||||
*/
|
||||
updateWalletBalance(newBalance) {
|
||||
if (newBalance !== undefined) {
|
||||
document.getElementById('walletBalance').textContent = newBalance.toFixed(2);
|
||||
// Update header balance (anchor tag with emoji)
|
||||
const headerBalance = document.querySelector('a[data-wallet-balance]');
|
||||
if (headerBalance) {
|
||||
headerBalance.textContent = `💰 ${newBalance.toFixed(2)} AED`;
|
||||
}
|
||||
|
||||
// Update page balance (span without emoji)
|
||||
const pageBalance = document.getElementById('walletBalance');
|
||||
if (pageBalance) {
|
||||
pageBalance.textContent = newBalance.toFixed(2);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user