Skip to content

Commit

Permalink
Merge pull request #234 from SFTtech/milo/fix-position-sum-order
Browse files Browse the repository at this point in the history
fix(web): correct position sum order #226
  • Loading branch information
mikonse authored Sep 4, 2024
2 parents b51f9b4 + 909e928 commit c00c4e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ export const TransactionPositions: React.FC<TransactionPositionsProps> = ({
)
);
}
const accs = accountIDsToShow.map((id) => accountIDMap[id]).sort(getAccountSortFunc("name"));

return {
shownAccounts: accountIDsToShow.map((id) => accountIDMap[id]).sort(getAccountSortFunc("name")),
shownAccountIDs: accountIDsToShow,
shownAccounts: accs,
shownAccountIDs: accs.map((a) => a.id),
};
}, [transaction, positions, additionalPurchaseItemAccounts, accountIDMap]);

Expand Down

0 comments on commit c00c4e5

Please sign in to comment.