This commit is contained in:
MuslemRahimi 2025-01-30 21:51:00 +01:00
parent 30db212fcf
commit 5579f78692
2 changed files with 12 additions and 4 deletions

View File

@ -411,7 +411,11 @@
}
}
let displayLegend = { close: "-", date: "-" };
let displayLegend = {
close: data?.getStockQuote?.price,
date: "-",
change: data?.getStockQuote?.changesPercentage,
};
let displayLastLogicalRangeValue;
@ -668,7 +672,7 @@
</script>
<SEO
title={`${$etfTicker} ${$realtimePrice ?? displayLegend?.close} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
title={`${$etfTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
description={`Get a real-time ${data?.companyName} (${$etfTicker}) stock chart, price quote with breaking news, financials, statistics, charts and more.`}
/>

View File

@ -413,7 +413,11 @@
}
}
let displayLegend = { close: "-", date: "-" };
let displayLegend = {
close: data?.getStockQuote?.price,
date: "-",
change: data?.getStockQuote?.changesPercentage,
};
let displayLastLogicalRangeValue;
@ -670,7 +674,7 @@
</script>
<SEO
title={`${$stockTicker} ${$realtimePrice ?? displayLegend?.close} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
title={`${$stockTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
description={`Get a real-time ${data?.companyName} (${$stockTicker}) stock chart, price quote with breaking news, financials, statistics, charts and more.`}
/>