ui fixes
This commit is contained in:
parent
ab6e7419f3
commit
08e0c59993
@ -21,7 +21,11 @@
|
||||
$: {
|
||||
if ($stockTicker && typeof window !== "undefined") {
|
||||
rawData = data?.getNextEarnings;
|
||||
epsRatio = ((rawData?.epsEst / rawData?.epsPrior - 1) * 100)?.toFixed(2);
|
||||
epsRatio =
|
||||
rawData?.epsPrior !== 0
|
||||
? ((rawData?.epsEst / rawData?.epsPrior - 1) * 100)?.toFixed(2)
|
||||
: null;
|
||||
|
||||
revenueRatio = (
|
||||
(rawData?.revenueEst / rawData?.revenuePrior - 1) *
|
||||
100
|
||||
@ -72,8 +76,9 @@
|
||||
? "before:content-['+'] text-[#00FC50]"
|
||||
: 'text-[#FF2F1F]'} ">{abbreviateNumber(revenueRatio)}%</span
|
||||
>
|
||||
YoY {revenueRatio > 0 ? "growth" : revenueRatio < 0 ? "shrinking" : ""} and
|
||||
earnings per share of
|
||||
YoY {revenueRatio > 0 ? "growth" : revenueRatio < 0 ? "shrinking" : ""}
|
||||
{#if epsRatio !== null}
|
||||
and earnings per share of
|
||||
<span class="font-semibold">{rawData?.epsEst}</span>, making a
|
||||
<span
|
||||
class="{epsRatio > 0
|
||||
@ -81,6 +86,10 @@
|
||||
: 'text-[#FF2F1F]'} ">{epsRatio}%</span
|
||||
>
|
||||
{epsRatio > 0 ? "increase" : epsRatio < 0 ? "decrease" : ""} YoY.
|
||||
{:else}
|
||||
and earnings per share of
|
||||
<span class="font-semibold">{rawData?.epsEst}</span>.
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -548,7 +548,7 @@
|
||||
? item?.epsEst?.toFixed(2)
|
||||
: "-"}
|
||||
</span>
|
||||
{#if item?.epsEst !== null && item?.epsPrior !== null}
|
||||
{#if item?.epsEst !== null && item?.epsPrior !== null && item?.epsPrior !== 0}
|
||||
{#if item?.epsEst / item?.epsPrior - 1 >= 0}
|
||||
<span class="ml-1 text-[#22C55E]">
|
||||
+{(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user