Selaa lähdekoodia

fix bug for portfolio history when change currency

Daniel Bohry 3 viikkoa sitten
vanhempi
sitoutus
bc428b9acb
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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);
 	}