[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:
Claude
2026-03-13 20:20:53 +00:00
parent 42ce174fc9
commit 5373ca9012

View File

@@ -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: {