From 64c2d98de9aa1289a4d1db839f5e5c4b6216ed9c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 18 Jul 2025 19:58:52 +0530 Subject: [PATCH] Fix header wallet balance update after job posting generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../templates/job_posting_generator/detail.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/job_posting_generator/templates/job_posting_generator/detail.html b/job_posting_generator/templates/job_posting_generator/detail.html index 541655d..46a2e07 100644 --- a/job_posting_generator/templates/job_posting_generator/detail.html +++ b/job_posting_generator/templates/job_posting_generator/detail.html @@ -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); + } } },