diff options
| author | Fuwn <[email protected]> | 2024-10-09 00:41:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-09 00:41:43 -0700 |
| commit | 998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch) | |
| tree | 50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/lib/List/mediaTitle.ts | |
| parent | feat(graphql): add badgeCount field (diff) | |
| download | due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip | |
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/lib/List/mediaTitle.ts')
| -rw-r--r-- | src/lib/List/mediaTitle.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/List/mediaTitle.ts b/src/lib/List/mediaTitle.ts index 9186b5d1..e59a3091 100644 --- a/src/lib/List/mediaTitle.ts +++ b/src/lib/List/mediaTitle.ts @@ -3,14 +3,14 @@ import settings from '$stores/settings'; import { get } from 'svelte/store'; export interface Title { - title: string; - hint: string; + title: string; + hint: string; } export const mediaTitle = (media: Media) => { - if (!media) return 'Loading ...'; + if (!media) return 'Loading ...'; - const title = media.title; + const title = media.title; - return title[get(settings).displayTitleFormat] || title.english || title.romaji || title.native; + return title[get(settings).displayTitleFormat] || title.english || title.romaji || title.native; }; |