From ad4ec5c5591d82ae3a18d8da7d1caadfcb22df72 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 6 Oct 2023 11:39:56 -0700
Subject: feat(template): highlight last fast

---
 src/lib/List/Anime/CleanAnimeList.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/List/Anime/CleanAnimeList.svelte')

diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index 7232ee54..8e33ee12 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -61,6 +61,7 @@
 					style={disableIncrement ? 'pointer-events: none; opacity: 50%;' : ''}
 					on:click={() => {
 						if (!disableIncrement) {
+							lastUpdatedMedia = anime.id;
 							pendingUpdate = anime.id;
 
 							updateMedia(anime.id, anime.mediaListEntry?.progress, () => {
@@ -72,7 +73,6 @@
 
 								previousAnimeList = media;
 								animeLists = cleanCache(user, identity);
-								lastUpdatedMedia = anime.id;
 								pendingUpdate = null;
 							});
 						}
-- 
cgit v1.2.3

