Skip to content

A local-first personal finance app

chore: use const

Charles Taylor4496e560d7fd
diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js
index 9264f221cc..018e1b0e97 100644
--- a/packages/desktop-client/src/components/accounts/Account.js
+++ b/packages/desktop-client/src/components/accounts/Account.js
@@ -1413,12 +1413,12 @@ class AccountInternal extends React.PureComponent {
value = !!transactions.find(t => !t.cleared);
}
- let idSet = new Set(ids);
+ const idSet = new Set(ids);
transactions.forEach(trans => {
if (!idSet.has(trans.id)) {
- // Skip transactions which aren't actually selected, since the
- // query above also retrieves the siblings of any selected splits.
+ // Skip transactions which aren't actually selected, since the query
+ // above also retrieves the siblings & parent of any selected splits.
return;
}