mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 15:12:58 +00:00
Fix wallet balance update after job posting generation
- Replace complex updateWalletBalance function with simple, working implementation
- Use correct selector (getElementById('walletBalance')) instead of wrong selectors
- Match the working implementation from Data Analyzer
- Wallet balance now updates immediately after job posting generation
- No page refresh required to see updated balance
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6bb07d16ae
commit
8ffec49c93
@ -709,19 +709,9 @@ const JobPostingUtils = {
|
|||||||
* Update wallet balance display - Job Posting Generator specific
|
* Update wallet balance display - Job Posting Generator specific
|
||||||
*/
|
*/
|
||||||
updateWalletBalance(newBalance) {
|
updateWalletBalance(newBalance) {
|
||||||
// Update header balance (anchor tag with emoji)
|
if (newBalance !== undefined) {
|
||||||
const headerBalance = document.querySelector('a[data-wallet-balance]');
|
document.getElementById('walletBalance').textContent = newBalance.toFixed(2);
|
||||||
if (headerBalance) {
|
|
||||||
headerBalance.textContent = `💰 ${newBalance.toFixed(2)} AED`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update page balance (div without emoji)
|
|
||||||
const pageBalance = document.querySelector('div[data-wallet-balance]');
|
|
||||||
if (pageBalance) {
|
|
||||||
pageBalance.textContent = `${newBalance.toFixed(2)} AED`;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.currentWalletBalance = newBalance;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user