Преглед на файлове

fix bug for portfolio history when change currency

Daniel Bohry преди 3 седмици
родител
ревизия
bc428b9acb
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/components/PortfolioValueHistory.svelte

+ 2 - 1
src/components/PortfolioValueHistory.svelte

@@ -285,7 +285,8 @@
 		fetchData();
 	}
 
-	$: if (historyData.length > 0 && chartCanvas) {
+	$: chartDependencies = [historyData, liveCurrentValue, showCurrentPoint];
+	$: if (historyData.length > 0 && chartCanvas && chartDependencies) {
 		renderChart(historyData);
 	}