From da8351ccecdf38ac5a5b0ec6417b960effcfabe4 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Sep 2023 18:00:10 -0700
Subject: refactor(settings): remove useless triple equal

---
 src/routes/settings/+page.svelte | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

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

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index c2af5e5e..6dc4202f 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -39,10 +39,10 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.displayUnresolved === true
+			$settings.displayUnresolved
 				? settings.setKey('displayUnresolved', false)
 				: settings.setKey('displayUnresolved', true)}
-		>{$settings.displayUnresolved === true ? 'Hide' : 'Show'} unresolved</a
+		>{$settings.displayUnresolved ? 'Hide' : 'Show'} unresolved</a
 	>
 	<br />
 	<small style="opacity: 50%;">Displays unresolved chapter counts as "?"</small>
@@ -52,10 +52,10 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.displayNotStarted === true
+			$settings.displayNotStarted
 				? settings.setKey('displayNotStarted', false)
 				: settings.setKey('displayNotStarted', true)}
-		>{$settings.displayNotStarted === true ? 'Hide' : 'Show'} media with zero progress</a
+		>{$settings.displayNotStarted ? 'Hide' : 'Show'} media with zero progress</a
 	>
 	<br />
 	<small style="opacity: 50%;"
@@ -68,10 +68,10 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.closeAnimeByDefault === true
+			$settings.closeAnimeByDefault
 				? settings.setKey('closeAnimeByDefault', false)
 				: settings.setKey('closeAnimeByDefault', true)}
-		>{$settings.closeAnimeByDefault === true ? 'Expand' : 'Close'} anime panel by default</a
+		>{$settings.closeAnimeByDefault ? 'Expand' : 'Close'} anime panel by default</a
 	>
 
 	<br />
@@ -79,10 +79,10 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.closeMangaByDefault === true
+			$settings.closeMangaByDefault
 				? settings.setKey('closeMangaByDefault', false)
 				: settings.setKey('closeMangaByDefault', true)}
-		>{$settings.closeMangaByDefault === true ? 'Expand' : 'Close'} manga panel by default</a
+		>{$settings.closeMangaByDefault ? 'Expand' : 'Close'} manga panel by default</a
 	>
 
 	<br />
@@ -90,10 +90,10 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.sortByDifference === true
+			$settings.sortByDifference
 				? settings.setKey('sortByDifference', false)
 				: settings.setKey('sortByDifference', true)}
-		>Sort anime by {@html $settings.sortByDifference === false
+		>Sort anime by {@html !$settings.sortByDifference
 			? 'difference between last watched and next episode'
 			: 'days left until next episode'}</a
 	>
@@ -103,14 +103,14 @@
 	<a
 		href={'#'}
 		on:click={() =>
-			$settings.roundDownChapters === true
+			$settings.roundDownChapters
 				? settings.setKey('roundDownChapters', false)
 				: settings.setKey('roundDownChapters', true)}
-		>{$settings.roundDownChapters === false ? 'Round down' : 'Maintain'} chapters</a
+		>{!$settings.roundDownChapters ? 'Round down' : 'Maintain'} chapters</a
 	>
 	<br />
 	<small style="opacity: 50%;"
-		>50/50.6 would {@html $settings.roundDownChapters === true ? '<b>not</b>' : ''} be due</small
+		>50/50.6 would {@html $settings.roundDownChapters ? '<b>not</b>' : ''} be due</small
 	>
 
 	<h2>Cache</h2>
-- 
cgit v1.2.3

