From 957d3892091c5240fcbc552fd8243f86e380b71a Mon Sep 17 00:00:00 2001 From: not-nullptr Date: Fri, 8 Mar 2024 20:49:38 +0000 Subject: [PATCH] fix text --- src/components/Card.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Card.svelte b/src/components/Card.svelte index 1247690..f013004 100644 --- a/src/components/Card.svelte +++ b/src/components/Card.svelte @@ -4,8 +4,14 @@ export let title: string; export let releaseYear: number; - function capitalizeFirstLetter(string: string) { - return string.charAt(0).toUpperCase() + string.slice(1); + function capitalizeFirstLetter(string: typeof compatibility) { + if (string === "goated") { + return "Good"; + } else if (string === "based") { + return "Okay"; + } else if (string === "cringe") { + return "Bad"; + } }