aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-06 00:23:21 -0800
committerFuwn <[email protected]>2023-12-06 00:23:21 -0800
commita8ab5b5345d5fa3dbb3d865268b70955a7445022 (patch)
tree5f81166d1b2a5251499fe3bcb1dfa28cef61d385 /src/lib/Tools
parentfix(wrapped): no proxy on dev (diff)
downloaddue.moe-a8ab5b5345d5fa3dbb3d865268b70955a7445022.tar.xz
due.moe-a8ab5b5345d5fa3dbb3d865268b70955a7445022.zip
feat(manga): mal reading time
Diffstat (limited to 'src/lib/Tools')
-rw-r--r--src/lib/Tools/Wrapped.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index e454f194..1914e29b 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -17,6 +17,7 @@
import { page } from '$app/stores';
import { clearAllParameters } from './tool.js';
import { env } from '$env/dynamic/public';
+ import { estimatedDayReading } from '$lib/Media/manga.js';
export let user: AniListAuthorisation;
@@ -351,7 +352,7 @@
<b>Manga</b>
</div>
<div class="grid-item">
- Time Read: {((chapters * 8.58) / 60 / 24).toFixed(2)} days
+ Time Read: {estimatedDayReading(chapters).toFixed(2)} days
</div>
<div class="grid-item">
Completed: {mangaList?.length}