bugfixing
This commit is contained in:
parent
fa9e2a1726
commit
46eda73380
@ -174,7 +174,7 @@
|
||||
} else if (type === "Q") {
|
||||
$wsBidPrice = typeof bp !== "undefined" ? bp : null;
|
||||
$wsAskPrice = typeof ap !== "undefined" ? ap : null;
|
||||
$realtimePrice = typeof lp !== "undefined" ? lp : $wsAskPrice;
|
||||
$realtimePrice = $wsAskPrice?.toFixed(2);
|
||||
}
|
||||
|
||||
// Update price increase state
|
||||
|
||||
@ -148,7 +148,7 @@
|
||||
if (newItem) {
|
||||
// Calculate the new changePercentage
|
||||
const baseLine = item?.price / (1 + item?.changesPercentage / 100);
|
||||
const newPrice = newItem?.lp;
|
||||
const newPrice = newItem?.ap;
|
||||
const newChangePercentage = (newPrice / baseLine - 1) * 100;
|
||||
|
||||
// Update the item directly in the oldList
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user