mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-27 17:48:17 -05:00
[AI] Reset loadingSimpleFinAccounts before early return in INVALID_ACCESS_TOKEN branch
The early return for INVALID_ACCESS_TOKEN skipped the setLoadingSimpleFinAccounts(false) call at the end of the handler, leaving the spinner active and clicks disabled. https://claude.ai/code/session_01CmcFHWUhqo3eC2joAWrtWM
This commit is contained in:
@@ -86,6 +86,7 @@ export function CreateAccountModal({
|
||||
try {
|
||||
const results = await send('simplefin-accounts');
|
||||
if (results.error_code === 'INVALID_ACCESS_TOKEN') {
|
||||
setLoadingSimpleFinAccounts(false);
|
||||
dispatch(
|
||||
pushModal({
|
||||
modal: {
|
||||
|
||||
Reference in New Issue
Block a user