From 3d406830191e4d896968d07378ad1d8434bf5394 Mon Sep 17 00:00:00 2001 From: Leonhard Tissen Date: Sat, 1 Jun 2024 14:13:14 +0200 Subject: [PATCH] Fix: Return $0.00 if there are no transactions --- components/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utils/index.js b/components/utils/index.js index e3a716d..24d058d 100644 --- a/components/utils/index.js +++ b/components/utils/index.js @@ -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 = {};