Browse Source

fix bug for portfolio history when change currency

Daniel Bohry 3 tuần trước cách đây
mục cha
commit
bc428b9acb
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
 	}