We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ef218f + 820e716 commit 8bb12fcCopy full SHA for 8bb12fc
1 file changed
src/app/features/budget/budget.component.ts
@@ -295,7 +295,8 @@ export class BudgetComponent implements OnInit {
295
this.totalSpent = spent.toFixed(2);
296
this.totalBudget = totalBudget.toFixed(2);
297
this.remainingBudgets = '0';
298
- this.budgetMessage = `⚠️ You have exceeded your budget!`;
+ const overSpent = (spent - totalBudget).toFixed(2);
299
+ this.budgetMessage = `⚠️ You have exceeded your budget by ${this.currency}${overSpent}`;
300
} else {
301
302
0 commit comments