Jelajahi Sumber

fix bug for portfolio history when change currency

Daniel Bohry 3 minggu lalu
induk
melakukan
bc428b9acb
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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);
 	}