fix
This commit is contained in:
parent
0d7c899730
commit
d03ee455ba
|
@ -199,11 +199,11 @@ const TradingViewChart = () => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
if (kLineChart) {
|
if (kLineChart) {
|
||||||
const newData = (await generatedKLineDataList(1))[0]
|
const newData = (await generatedKLineDataList(1))[0]
|
||||||
newData.timestamp += 10000 * 60
|
newData.timestamp += 30000 * 60
|
||||||
kLineChart.updateData(newData)
|
kLineChart.updateData(newData)
|
||||||
}
|
}
|
||||||
updateData(kLineChart)
|
updateData(kLineChart)
|
||||||
}, 10000)
|
}, 30000)
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue