Skip to content

fix: reset highlighted categories on year switch - #203

Open
MikhailVerbitski wants to merge 1 commit into
ardov:masterfrom
MikhailVerbitski:fix/year-review-selected-categories
Open

fix: reset highlighted categories on year switch#203
MikhailVerbitski wants to merge 1 commit into
ardov:masterfrom
MikhailVerbitski:fix/year-review-selected-categories

Conversation

@MikhailVerbitski

Copy link
Copy Markdown

checked state in IncomeCard and NotFunCard was initialized once at mount, so switching years left stale selections: categories present in the new year but absent from the initial render stayed unhighlighted and were excluded from the totals. Reset the selection to all categories whenever the set of category ids changes.

checked state in IncomeCard and NotFunCard was initialized once at mount,
so switching years left stale selections: categories present in the new
year but absent from the initial render stayed unhighlighted and were
excluded from the totals. Reset the selection to all categories whenever
the set of category ids changes.
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

@mikhail-verbitski is attempting to deploy a commit to the Alexey Ardov's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants