From 7b6f87802e0a5123b70e24689f798dd196bc5143 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 29 Aug 2023 13:38:57 -0700
Subject: fix(settings): better reache method

---
 src/routes/settings/+page.svelte | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 5e70cf36..c9bc8b45 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -8,21 +8,24 @@
 	import roundDownChapters from '../../stores/roundDownChapters';
 	import sortByDifference from '../../stores/sortByDifference';
 	import displayNotStarted from '../../stores/displayNotStarted';
+	import manga from '../../stores/manga';
+	import anime from '../../stores/anime';
 
 	export let data;
 
 	const pruneUnresolved = async () => {
 		const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray();
-
 		const ids = unresolved.map((m) => m.id);
 
+		manga.set('');
+		anime.set('');
 		await chapterDatabase.chapters.bulkDelete(ids);
 	};
 	const pruneAll = async () => {
 		const all = await chapterDatabase.chapters.toArray();
-
 		const ids = all.map((m) => m.id);
 
+		manga.set('');
 		await chapterDatabase.chapters.bulkDelete(ids);
 	};
 	const resetSettings = () => {
-- 
cgit v1.2.3

