diff --git a/src/lib/components/ETFSidecard.svelte b/src/lib/components/ETFSidecard.svelte
index 79b7a019..6f89f39f 100644
--- a/src/lib/components/ETFSidecard.svelte
+++ b/src/lib/components/ETFSidecard.svelte
@@ -23,11 +23,11 @@
let dividendYield;
async function stockSelector(ticker: string) {
- if (ticker?.length !== 0 && !["BTC", "USD"]?.includes(ticker)) {
+ if (ticker?.length !== 0 && !["BTCUSD", "USD"]?.includes(ticker)) {
window?.scroll({ top: 0, left: 0, behavior: "smooth" });
stockTicker.update((value) => ticker);
goto("/stocks/" + ticker + "/");
- } else if (ticker === "BTC") {
+ } else if (ticker === "BTCUSD") {
window?.scroll({ top: 0, left: 0, behavior: "smooth" });
cryptoTicker.update((value) => "BTCUSD");
goto("/crypto/BTCUSD");
@@ -189,7 +189,10 @@
{#if typeof item?.name !== "undefined"}
{item?.name?.length > 20
? formatString(item?.name?.slice(0, 20)) + "..."
- : formatString(item?.name)}
+ : formatString(item?.name)?.replace(
+ "Usd",
+ "USD",
+ )}
{:else}
n/a
{/if}
diff --git a/src/lib/components/News.svelte b/src/lib/components/News.svelte
index feee0769..2af16406 100644
--- a/src/lib/components/News.svelte
+++ b/src/lib/components/News.svelte
@@ -1,46 +1,12 @@
@@ -77,7 +51,7 @@
{#each newsList?.slice(0, 10) as item}
-
- {formatDate(item?.publishedDate)} ago -
+ {formatDate(item?.publishedDate)} ·