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:
Claude 2025-07-18 19:58:52 +05:30
parent 8ffec49c93
commit 64c2d98de9

View File

@ -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);
}
}
},