浏览代码

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);
 	}