Pārlūkot izejas kodu

fix bug for portfolio history when change currency

Daniel Bohry 3 nedēļas atpakaļ
vecāks
revīzija
bc428b9acb
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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);
 	}