diff --git a/src/lib/components/ESGCard.svelte b/src/lib/components/ESGCard.svelte index d39b3f9a..09cf39c6 100644 --- a/src/lib/components/ESGCard.svelte +++ b/src/lib/components/ESGCard.svelte @@ -20,23 +20,14 @@ $: { if ($stockTicker && typeof window !== 'undefined' && typeof stockDeck !== 'undefined' && stockDeck?.length !== 0) { - info = stockDeck[0] - - + info = stockDeck?.at(0) esgScore = info?.esgScore !== 'n/a' ? Math.round(info?.esgScore.toFixed(1)) : 'n/a'; socialScore = info?.socialScore !== 'n/a' ? Math.round(info?.socialScore.toFixed(1)) : 'n/a'; - environmentalScore = info?.environmentalScore !== 'n/a' ? Math.round(info?.environmentalScore.toFixed(1)) : 'n/a'; - governanceScore = info?.governanceScore !== 'n/a' ? Math.round(info?.governanceScore.toFixed(1)) : 'n/a'; + environmentalScore = info?.environmentalScore !== 'n/a' ? Math.round(info?.environmentalScore?.toFixed(1)) : 'n/a'; + governanceScore = info?.governanceScore !== 'n/a' ? Math.round(info?.governanceScore?.toFixed(1)) : 'n/a'; esgRiskRating = info?.esgRiskRating; }; - /* - if (esgRatingCircleContainer) - { - esgRatingAcc(esgScore/100); - } - */ - } @@ -146,20 +137,16 @@ $: {
| Company | -Market Cap | -Avg Volume | +Company | +Market Cap | +Avg Volume | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + |
-
-
-
-
+
{item?.symbol}
{#if typeof item?.name !== 'undefined'}
- {item?.name?.length > 10 ? item?.name?.slice(0,10) + "..." : item?.name}
+ {item?.name?.length > 20 ? item?.name?.slice(0,20) + "..." : item?.name}
{:else}
n/a
{/if}
@@ -155,11 +148,11 @@ export let similarstock;
|
- + | {item?.marketCap !== null ? abbreviateNumber(item?.marketCap,true) : '-'} | -+ | {item?.avgVolume !== null ? abbreviateNumber(item?.avgVolume) : '-'} | {/if} diff --git a/src/lib/components/StockKeyInformation.svelte b/src/lib/components/StockKeyInformation.svelte index aa535e7d..bb41e087 100644 --- a/src/lib/components/StockKeyInformation.svelte +++ b/src/lib/components/StockKeyInformation.svelte @@ -4,7 +4,7 @@ import ExecutiveCard from '$lib/components/ExecutiveCard.svelte'; import SimilarTickerCard from '$lib/components/SimilarTickerCard.svelte'; - import ESGCard from '$lib/components/ESGCard.svelte'; + //import ESGCard from '$lib/components/ESGCard.svelte'; import SECFilingsCard from '$lib/components/SECFilingsCard.svelte'; import TopETFTickerHolder from '$lib/components/TopETFTickerHolder.svelte'; @@ -44,9 +44,11 @@ $: { + @@ -145,6 +147,7 @@ $: { + diff --git a/src/lib/components/TopETFTickerHolder.svelte b/src/lib/components/TopETFTickerHolder.svelte index 970f7403..8f080df8 100644 --- a/src/lib/components/TopETFTickerHolder.svelte +++ b/src/lib/components/TopETFTickerHolder.svelte @@ -101,18 +101,15 @@
| Company | -Total Assets | -% of Fund | +Company | +Total Assets | +% of Fund |
|---|---|---|---|---|---|
| + |
{item?.symbol}
{#if typeof item?.name !== 'undefined'}
- {item?.name?.length > 15 ? item?.name?.slice(0,15) + "..." : item?.name}
+ {item?.name?.length > 20 ? item?.name?.slice(0,20) + "..." : item?.name}
{:else}
n/a
{/if}
@@ -150,7 +147,7 @@
|
- + | {item?.totalAssets !== null ? abbreviateNumber(item?.totalAssets,true) : '-'} |