bugfixing
This commit is contained in:
parent
27bcb9c18b
commit
4b479f06ad
@ -333,7 +333,6 @@
|
|||||||
intervalId = setInterval(checkChart, 0);
|
intervalId = setInterval(checkChart, 0);
|
||||||
try {
|
try {
|
||||||
output = [...data?.getOneDayPrice] ?? [];
|
output = [...data?.getOneDayPrice] ?? [];
|
||||||
|
|
||||||
oneDayPrice = output?.map((item) => ({
|
oneDayPrice = output?.map((item) => ({
|
||||||
time: Date?.parse(item?.time + "Z") / 1000,
|
time: Date?.parse(item?.time + "Z") / 1000,
|
||||||
open: item?.open !== null ? item?.open : NaN,
|
open: item?.open !== null ? item?.open : NaN,
|
||||||
@ -594,7 +593,9 @@
|
|||||||
|
|
||||||
Promise.all(asyncFunctions)
|
Promise.all(asyncFunctions)
|
||||||
.then((results) => {
|
.then((results) => {
|
||||||
initializePrice();
|
setTimeout(() => {
|
||||||
|
initializePrice();
|
||||||
|
}, 100);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error("An error occurred:", error);
|
console.error("An error occurred:", error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user