diff --git a/src/routes/reddit-tracker/+page.svelte b/src/routes/reddit-tracker/+page.svelte index 1e31b121..0aa39380 100644 --- a/src/routes/reddit-tracker/+page.svelte +++ b/src/routes/reddit-tracker/+page.svelte @@ -10,6 +10,7 @@ import { Chart } from 'svelte-echarts' import Link from "lucide-svelte/icons/external-link"; import ThumbsUp from "lucide-svelte/icons/thumbs-up"; import MessageCircle from "lucide-svelte/icons/message-circle"; +import Lazy from '$lib/components/Lazy.svelte'; export let data; let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL; @@ -57,13 +58,13 @@ import MessageCircle from "lucide-svelte/icons/message-circle"; function removeHttpsStrings(input) { // Split the input string by spaces - let words = input.split(' '); + let words = input?.split(' '); // Filter out words that contain "https" - let filteredWords = words.filter(word => !word.includes('https')); + let filteredWords = words?.filter(word => !word?.includes('https')); // Join the filtered words back into a single string - let output = filteredWords.join(' '); + let output = filteredWords?.join(' '); return output; } @@ -336,11 +337,11 @@ const optionCompanySpread = { - -
- -
- + +
+ +
+
@@ -358,9 +359,11 @@ const optionCompanySpread = { -
- -
+ +
+ +
+
@@ -379,15 +382,18 @@ const optionCompanySpread = { +
+
-
+
+
@@ -442,6 +448,7 @@ const optionCompanySpread = { {/each} +