Skip to content

Commit

Permalink
Fix bug where transactions got sorted incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
range-of-motion committed Dec 9, 2023
1 parent 949315a commit af373aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const getTransactionsBySpan = (span) => {
return happenedOn.getMonth() + 1 === span.month && happenedOn.getFullYear() === span.year;
})
.sort((a, b) => {
return b.id - a.id;
return b.happenedOn - a.happenedOn;
});
};
Expand Down

0 comments on commit af373aa

Please sign in to comment.