Skip to content

Open source personal finance application

fix(Chart): fix conversation to base currency

ilkomeba4c4aace8ae
diff --git a/components/stat/chart/View.vue b/components/stat/chart/View.vue
index 3bdd1c86..3b1ea23b 100644
--- a/components/stat/chart/View.vue
+++ b/components/stat/chart/View.vue
@@ -90,6 +90,8 @@ export default defineComponent({
const trnsItems = this.$store.state.trns.items
const categoriesItems = this.$store.state.categories.items
const walletsItems = this.$store.state.wallets.items
+ const baseCurrencyCode = this.$store.state.currencies.base
+ const rates = this.$store.state.currencies.rates
const storeFilter = this.$store.state.filter
const transferCategoriesIds = getTransferCategoriesIds(categoriesItems)
@@ -125,6 +127,8 @@ export default defineComponent({
})
const { incomeTransactions, expenseTransactions, sumTransactions } = getTotal({
+ baseCurrencyCode,
+ rates,
trnsIds,
trnsItems,
walletsItems,