Skip to content

Commit

Permalink
Merge pull request #144 from LeonhardTissen/main
Browse files Browse the repository at this point in the history
Fix: Return $0.00 if there are no transactions
  • Loading branch information
maxwellward authored Nov 1, 2024
2 parents 73d752e + 3d40683 commit c8fa547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import connectionsJSON from "../json/Connections.json";
class Utils {
static getMostUsedCurrency(transactions, amount) {
if (transactions == null) {
return;
return '$0.00';
}

const currenciesUsed = {};
Expand Down

0 comments on commit c8fa547

Please sign in to comment.