fix text
This commit is contained in:
parent
708a10d008
commit
957d389209
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue