[PR #6488] [MERGED] fix(mobile): fix stale amounts in cover overspending modal #48378

Closed
opened 2026-04-26 10:18:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6488
Author: @Faizanq
Created: 12/26/2025
Status: Merged
Merged: 12/27/2025
Merged by: @MatissJanis

Base: masterHead: fix/mobile-cover-overspending-modal


📝 Commits (3)

  • 66328e5 fix(mobile): close modals after cover overspending action
  • 8c663fb fix: rename release notes file to match PR number
  • ad20932 fix(mobile): fix stale overspending amounts in cover modal

📊 Changes

2 files changed (+17 additions, -3 deletions)

View changed files

📝 packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx (+11 -3)
upcoming-release-notes/6488.md (+6 -0)

📄 Description

Summary

The cover overspending modal was showing old amounts when selecting categories.

The callback was capturing amountsByCategory when the modal opened, so it stayed stale after covering a category. Fixed by using a ref to always get the current value.

Fixes #6487


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/6488 **Author:** [@Faizanq](https://github.com/Faizanq) **Created:** 12/26/2025 **Status:** ✅ Merged **Merged:** 12/27/2025 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `fix/mobile-cover-overspending-modal` --- ### 📝 Commits (3) - [`66328e5`](https://github.com/actualbudget/actual/commit/66328e58154587c92a8aef28ddddc6edd9c62468) fix(mobile): close modals after cover overspending action - [`8c663fb`](https://github.com/actualbudget/actual/commit/8c663fbfb1eff195b1500a7132521b69ed32ea36) fix: rename release notes file to match PR number - [`ad20932`](https://github.com/actualbudget/actual/commit/ad209323a7ba239790aa9fe5feab7544755b5ee2) fix(mobile): fix stale overspending amounts in cover modal ### 📊 Changes **2 files changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx` (+11 -3) ➕ `upcoming-release-notes/6488.md` (+6 -0) </details> ### 📄 Description ## Summary The cover overspending modal was showing old amounts when selecting categories. The callback was capturing `amountsByCategory` when the modal opened, so it stayed stale after covering a category. Fixed by using a ref to always get the current value. Fixes #6487 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-26 10:18:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#48378