bugfixng seo
This commit is contained in:
parent
7bbf1ffeaf
commit
a00b3a04ad
@ -256,7 +256,7 @@
|
|||||||
$etfTicker = data?.getParams;
|
$etfTicker = data?.getParams;
|
||||||
$assetType = "stock";
|
$assetType = "stock";
|
||||||
$displayCompanyName = data?.companyName;
|
$displayCompanyName = data?.companyName;
|
||||||
$currentPortfolioPrice = data?.getStockQuote?.price;
|
$currentPortfolioPrice = data?.getStockQuote?.price?.toFixed(2);
|
||||||
prePostData = data?.getPrePostQuote || {};
|
prePostData = data?.getPrePostQuote || {};
|
||||||
const output = [...data?.getOneDayPrice] ?? [];
|
const output = [...data?.getOneDayPrice] ?? [];
|
||||||
oneDayPrice = output?.map((item) => ({
|
oneDayPrice = output?.map((item) => ({
|
||||||
|
|||||||
@ -150,7 +150,7 @@
|
|||||||
if ($realtimePrice !== null && $realtimePrice !== 0) {
|
if ($realtimePrice !== null && $realtimePrice !== 0) {
|
||||||
$currentPortfolioPrice = $realtimePrice;
|
$currentPortfolioPrice = $realtimePrice;
|
||||||
} else if ($realtimePrice === null || $realtimePrice === 0) {
|
} else if ($realtimePrice === null || $realtimePrice === 0) {
|
||||||
$realtimePrice = data?.getStockQuote?.price;
|
$realtimePrice = data?.getStockQuote?.price?.toFixed(2);
|
||||||
$currentPortfolioPrice = $realtimePrice;
|
$currentPortfolioPrice = $realtimePrice;
|
||||||
} else if (oneDayPrice?.length !== 0) {
|
} else if (oneDayPrice?.length !== 0) {
|
||||||
const length = oneDayPrice?.length;
|
const length = oneDayPrice?.length;
|
||||||
@ -412,9 +412,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let displayLegend = {
|
let displayLegend = {
|
||||||
close: data?.getStockQuote?.price,
|
close: data?.getStockQuote?.price
|
||||||
|
? data?.getStockQuote?.price?.toFixed(2)
|
||||||
|
: "n/a",
|
||||||
date: "-",
|
date: "-",
|
||||||
change: data?.getStockQuote?.changesPercentage,
|
change: data?.getStockQuote?.changesPercentage
|
||||||
|
? data?.getStockQuote?.changesPercentage?.toFixed(2)
|
||||||
|
: "n/a",
|
||||||
};
|
};
|
||||||
|
|
||||||
let displayLastLogicalRangeValue;
|
let displayLastLogicalRangeValue;
|
||||||
@ -672,7 +676,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SEO
|
<SEO
|
||||||
title={`${$etfTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
|
title={`${$etfTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price?.toFixed(2)} ${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.`}
|
description={`Get a real-time ${data?.companyName} (${$etfTicker}) stock chart, price quote with breaking news, financials, statistics, charts and more.`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@ -259,7 +259,7 @@
|
|||||||
$stockTicker = data?.getParams;
|
$stockTicker = data?.getParams;
|
||||||
$assetType = "stock";
|
$assetType = "stock";
|
||||||
$displayCompanyName = data?.companyName;
|
$displayCompanyName = data?.companyName;
|
||||||
$currentPortfolioPrice = data?.getStockQuote?.price;
|
$currentPortfolioPrice = data?.getStockQuote?.price?.toFixed(2);
|
||||||
prePostData = data?.getPrePostQuote || {};
|
prePostData = data?.getPrePostQuote || {};
|
||||||
const output = [...data?.getOneDayPrice] ?? [];
|
const output = [...data?.getOneDayPrice] ?? [];
|
||||||
oneDayPrice = output?.map((item) => ({
|
oneDayPrice = output?.map((item) => ({
|
||||||
|
|||||||
@ -414,9 +414,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let displayLegend = {
|
let displayLegend = {
|
||||||
close: data?.getStockQuote?.price,
|
close: data?.getStockQuote?.price
|
||||||
|
? data?.getStockQuote?.price?.toFixed(2)
|
||||||
|
: "n/a",
|
||||||
date: "-",
|
date: "-",
|
||||||
change: data?.getStockQuote?.changesPercentage,
|
change: data?.getStockQuote?.changesPercentage
|
||||||
|
? data?.getStockQuote?.changesPercentage?.toFixed(2)
|
||||||
|
: "n/a",
|
||||||
};
|
};
|
||||||
|
|
||||||
let displayLastLogicalRangeValue;
|
let displayLastLogicalRangeValue;
|
||||||
@ -674,7 +678,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SEO
|
<SEO
|
||||||
title={`${$stockTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price} ${displayLegend?.change >= 0 ? "▲" : "▼"} ${displayLegend?.change}%`}
|
title={`${$stockTicker} ${$currentPortfolioPrice !== null && $currentPortfolioPrice !== 0 ? $currentPortfolioPrice : data?.getStockQuote?.price?.toFixed(2)} ${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.`}
|
description={`Get a real-time ${data?.companyName} (${$stockTicker}) stock chart, price quote with breaking news, financials, statistics, charts and more.`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user