chore: Update credit sections

This commit is contained in:
iamsivin
2025-11-03 11:59:12 +05:30
parent a0cc8e2f3f
commit 643316e19a
16 changed files with 560 additions and 556 deletions
@@ -241,7 +241,10 @@ export const actions = {
commit(types.default.SET_V2_BILLING_UI_FLAG, { isTopupInProcess: true });
try {
await EnterpriseAccountAPI.v2Topup(data);
// Refresh balance and ledger after successful topup
// Wait for backend to process, then refresh balance
await new Promise(resolve => {
setTimeout(resolve, 2000);
});
await dispatch('fetchCreditsBalance');
return { success: true };
} catch (error) {