aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Schedule/Crunchyroll.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Schedule/Crunchyroll.svelte')
-rw-r--r--src/lib/Schedule/Crunchyroll.svelte10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/Schedule/Crunchyroll.svelte b/src/lib/Schedule/Crunchyroll.svelte
index a3adeb60..ba04b250 100644
--- a/src/lib/Schedule/Crunchyroll.svelte
+++ b/src/lib/Schedule/Crunchyroll.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
-import Spacer from "$lib/Layout/Spacer.svelte";
import crunchyroll from "$lib/Data/Static/crunchyroll.json";
+import Spacer from "$lib/Layout/Spacer.svelte";
import locale from "$stores/locale";
import "./container.css";
@@ -41,11 +41,11 @@ const ordinalSuffix = (i: number) => {
const j = i % 10;
const k = i % 100;
- if (j === 1 && k !== 11) return i + "st";
- if (j === 2 && k !== 12) return i + "nd";
- if (j === 3 && k !== 13) return i + "rd";
+ if (j === 1 && k !== 11) return `${i}st`;
+ if (j === 2 && k !== 12) return `${i}nd`;
+ if (j === 3 && k !== 13) return `${i}rd`;
- return i + "th";
+ return `${i}th`;
};
</script>