diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js
index 1f88910795b16ec3f83529e4da12347a6643fe8f..7b442febc568e5ac401545a643db61101a8fdee6 100644
--- a/src/data/backwardsCompatibility/backwardsCompatibility.js
+++ b/src/data/backwardsCompatibility/backwardsCompatibility.js
@@ -117,11 +117,11 @@ App.Update.backwardsCompatibility = function() {
 };
 
 App.Update.globalVariables = function(node) {
-	for (var key of Object.keys(CategoryAssociatedGroup)) {
+	for (const key of Object.keys(CategoryAssociatedGroup)) {
 		if(!V.lastWeeksGatheredTotals[key]) {
 			V.lastWeeksGatheredTotals[key] = {income: 0, expenses: 0, profits: 0};
 		}
-		for (var subKey of Object.keys(new App.Data.Records.LastWeeksCash())) {
+		for (const subKey of Object.keys(new App.Data.Records.LastWeeksCash())) {
 			if(!V.lastWeeksGatheredTotals[key][subKey]) {
 				V.lastWeeksGatheredTotals[key][subKey] = {income: 0, expenses: 0, profits: 0};
 			}
diff --git a/src/js/economyJS.js b/src/js/economyJS.js
index 226113cf235539d91a198381c61aa7d2fd8d923d..d59470b6eab0a17bb5279c349881a20b516c8eb8 100644
--- a/src/js/economyJS.js
+++ b/src/js/economyJS.js
@@ -2363,7 +2363,7 @@ globalThis.cashX = function(cost, what, who) {
 
 		// gather totals
 		V.lastWeeksCashProfits[what] += cost;
-		for (var key of Object.keys(CategoryAssociatedGroup)) {
+		for (const key of Object.keys(CategoryAssociatedGroup)) {
 			if (CategoryAssociatedGroup[key].contains(what)) {
 				V.lastWeeksGatheredTotals[key][what].income += cost;
 				V.lastWeeksGatheredTotals[key][what].profits += cost;
@@ -2391,7 +2391,7 @@ globalThis.cashX = function(cost, what, who) {
 
 		// gather totals
 		V.lastWeeksCashProfits[what] += cost;
-		for (var key of Object.keys(CategoryAssociatedGroup)) {
+		for (const key of Object.keys(CategoryAssociatedGroup)) {
 			if (CategoryAssociatedGroup[key].contains(what)) {
 				V.lastWeeksGatheredTotals[key][what].expenses += cost;
 				V.lastWeeksGatheredTotals[key][what].profits += cost;
@@ -2648,9 +2648,9 @@ globalThis.setupLastWeeksCash = function() {
 
 	// Here we reset our tracked totals on week end, and add the default categories to all objects
 	V.lastWeeksGatheredTotals = {};
-	for (var key of Object.keys(CategoryAssociatedGroup)){
+	for (const key of Object.keys(CategoryAssociatedGroup)){
 		V.lastWeeksGatheredTotals[key] = {income: 0, expenses: 0, profits: 0};
-		for (var subKey of Object.keys(new App.Data.Records.LastWeeksCash())) {
+		for (const subKey of Object.keys(new App.Data.Records.LastWeeksCash())) {
 			V.lastWeeksGatheredTotals[key][subKey] = {income: 0, expenses: 0, profits: 0};
 		}
 	}