Commit 5fd005c
Use hasAccountingConnections instead of getValidConnectedIntegration for category button visibility
The "Add category" button in the expense category picker was using
getValidConnectedIntegration which excludes unverified (failed) connections,
while the Categories settings page uses hasAccountingConnections which detects
any connection regardless of sync status. This aligns both checks so the button
is consistently hidden when an accounting connection exists but has failed.
Co-authored-by: daledah <daledah@users.noreply.github.com>1 parent e6ac2ed commit 5fd005c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments