ui fix
This commit is contained in:
parent
e971f1a9df
commit
058925ed53
@ -189,6 +189,7 @@ function handleTypeOfTrade(state:string)
|
||||
} else if (type === "Q") {
|
||||
$wsBidPrice = typeof bp !== "undefined" ? bp : null;
|
||||
$wsAskPrice = typeof ap !== "undefined" ? ap : null;
|
||||
$realtimePrice = $wsAskPrice;
|
||||
}
|
||||
|
||||
// Update price increase state
|
||||
|
||||
@ -159,8 +159,9 @@
|
||||
if ($stockTicker && typeof window !== "undefined") {
|
||||
// add a check to see if running on client-side
|
||||
if ($realtimePrice !== null && $realtimePrice !== 0) {
|
||||
$realtimePrice =
|
||||
$realtimePrice !== 0 ? $realtimePrice : data?.getStockQuote?.price;
|
||||
$currentPortfolioPrice = $realtimePrice;
|
||||
} else if ($realtimePrice === null || $realtimePrice === 0) {
|
||||
$realtimePrice = data?.getStockQuote?.price;
|
||||
$currentPortfolioPrice = $realtimePrice;
|
||||
} else if (oneDayPrice?.length !== 0) {
|
||||
const length = oneDayPrice?.length;
|
||||
@ -819,7 +820,7 @@
|
||||
<div
|
||||
class="text-2xl md:text-3xl font-bold text-white flex flex-row items-center w-full"
|
||||
>
|
||||
{displayLegend?.close}
|
||||
{$realtimePrice ?? displayLegend?.close}
|
||||
|
||||
{#if $priceIncrease === true}
|
||||
<div
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user