fix error handling for simplefin batch sync (#5822)

* fix error handling for batch simplefin sync

* note
This commit is contained in:
Matt Fiddaman
2025-09-30 23:51:17 +01:00
committed by GitHub
parent 534c1e6680
commit 1210a74b4a
2 changed files with 8 additions and 2 deletions

View File

@@ -162,8 +162,8 @@ function getAccountResponse(results, accountId, startDate) {
return;
}
const needsAttention = results.sferrors.find(
e => e === `Connection to ${account.org.name} may need attention`,
const needsAttention = results.sferrors.find(e =>
e.startsWith(`Connection to ${account.org.name} may need attention`),
);
if (needsAttention) {
logAccountError(results, accountId, {

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---
Fix account sync status indicators when using SimpleFIN