From 4496e560d7fd6b8508a7d8910e8817c5e784f6eb Mon Sep 17 00:00:00 2001 From: Charles Taylor <taylorc822@gmail.com> Date: Thu, 3 Nov 2022 22:58:39 +1100 Subject: [PATCH] chore: use const --- packages/desktop-client/src/components/accounts/Account.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js index 9264f221c..018e1b0e9 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; } -- GitLab