Skip to content

Firefly III: a personal finances manager

Fix #12889

James Colef6cfff32318b
diff --git a/changelog.md b/changelog.md
index b996e7b12a..d870f77809 100644
--- a/changelog.md
+++ b/changelog.md
@@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [Issue 12878](https://github.com/firefly-iii/firefly-iii/issues/12878) (Reconciling Accounts directly from Assets Account page causes 404) reported by @DipeshAggarwal
- [Issue 12860](https://github.com/firefly-iii/firefly-iii/issues/12860) (Not yet stored attachments, return false) reported by @Tealk
- [Issue 12885](https://github.com/firefly-iii/firefly-iii/issues/12885) (Some fields on the Extra Information are blank when editing a transaction) reported by @rvelasq
+- #12889
### Security
diff --git a/resources/assets/v3/js/shared/draw-chart.js b/resources/assets/v3/js/shared/draw-chart.js
index 66de704b64..71c5529217 100644
--- a/resources/assets/v3/js/shared/draw-chart.js
+++ b/resources/assets/v3/js/shared/draw-chart.js
@@ -38,7 +38,7 @@ let defaultChartOptions = {
},
tooltip: {
interaction: {
- mode: "x",
+ mode: "index",
},
callbacks: {},
},
@@ -328,10 +328,7 @@ function drawMultiCurrencyLineChart(url, holder, anonymous, drawTodayMarker, col
let current = all[i];
let currentCurrencyCode = current.currency_code;
let currentEntryKey = "entries";
- if (
- window.store.get("convert_to_primary") &&
- current.currency_code !== current.primary_currency_code
- ) {
+ if (window.store.get("convert_to_primary") && current.currency_code !== current.primary_currency_code) {
currentCurrencyCode = current.primary_currency_code;
currentEntryKey = "pc_entries";
}
@@ -353,9 +350,7 @@ function drawMultiCurrencyLineChart(url, holder, anonymous, drawTodayMarker, col
drawTodayIndex = labelCount;
}
// add the label to the array
- data.labels.push(
- format(date, i18next.t("config.month_and_day_fns", { lng: locale }), locale),
- );
+ data.labels.push(format(date, i18next.t("config.month_and_day_fns", { lng: locale }), locale),);
}
}
}