From 82bb1d72309ade07158f84865dc58db1ca86889c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:14:54 +0200 Subject: [PATCH] Handle track binding refresh mutation error Promise rejection was never properly handled --- src/components/tracker/TrackManga.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tracker/TrackManga.tsx b/src/components/tracker/TrackManga.tsx index 4b901033..91e9bc72 100644 --- a/src/components/tracker/TrackManga.tsx +++ b/src/components/tracker/TrackManga.tsx @@ -60,9 +60,9 @@ export const TrackManga = ({ manga }: { manga: MangaIdInfo & Pick (isSearchActive ? Box : DialogContent), [isSearchActive]); useEffect(() => { - Promise.all(mangaTrackRecords.map((trackRecord) => requestManager.fetchTrackBind(trackRecord.id))).catch(() => - makeToast(t('tracking.error.label.could_not_fetch_track_info'), 'error'), - ); + Promise.all( + mangaTrackRecords.map((trackRecord) => requestManager.fetchTrackBind(trackRecord.id).response), + ).catch(() => makeToast(t('tracking.error.label.could_not_fetch_track_info'), 'error')); }, [mangaTrackRecords]); const trackerComponents = useMemo(