Skip to content

A local-first personal finance app

fix error handling for simplefin batch sync (#5822)

Matt Fiddaman1210a74b4a10
diff --git a/packages/sync-server/src/app-simplefin/app-simplefin.js b/packages/sync-server/src/app-simplefin/app-simplefin.js
index b4c4c51de1..20623aa488 100644
--- a/packages/sync-server/src/app-simplefin/app-simplefin.js
+++ b/packages/sync-server/src/app-simplefin/app-simplefin.js
@@ -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, {
diff --git a/upcoming-release-notes/5822.md b/upcoming-release-notes/5822.md
new file mode 100644
index 0000000000..aa2764cb12
--- /dev/null
+++ b/upcoming-release-notes/5822.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [matt-fidd]
+---
+
+Fix account sync status indicators when using SimpleFIN