From 5cdf86a147dda5ba88884dd297d960479192170e Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 17 Sep 2024 18:42:29 -0400 Subject: [PATCH] frontend will not call backend if id is 0 --- frontend/src/helperComponents/Anime.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 8411a0c..bb05634 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -148,7 +148,7 @@ submitData[key] = value } - if (isAniListLoggedIn) { + if (isAniListLoggedIn && currentAniListAnime.data.MediaList.mediaId !== 0) { let body: AniListUpdateVariables = { mediaId: currentAniListAnime.data.MediaList.mediaId, progress: submitData.episodes, @@ -182,7 +182,7 @@ }) } - if (malLoggedIn) { + if (malLoggedIn && currentMalAnime.id !== 0) { let body: MALUploadStatus = { status: submitData.status.mal, is_rewatching: submitData.repeat > 0, @@ -217,7 +217,7 @@ }) } - if (simklLoggedIn) { + if (simklLoggedIn && currentSimklAnime.show.ids.simkl !== 0) { if (currentSimklAnime.watched_episodes_count !== submitData.episodes) { await SimklSyncEpisodes(currentSimklAnime, submitData.episodes).then((value: SimklAnime) => { AddAnimeServiceToTable({