fix sync progress not being hidden

AuthorKonata <konata@posteo.jp>
Date
Commite57cffa70693f16213f652f682d67eda0a2f41d5
Parent5645780
1 file changed, 1 insertion(+), 1 deletion(-)
▾Mwebclient/src/components/Playlist.tsx
@@ -81,12 +81,12 @@ export default function Playlist(props: PlaylistProps) {
return download(fileName, item, basePath, props.currentDir, props.options, props.fetchFiles);
});
await Promise.allSettled(downloadPromises);
progressToast.hideToast();
toast("Playlist sync completed", "success");
} catch (e) {
progressToast.hideToast();
toast("Playlist sync failed", "error", e);
} finally {
progressToast.hideToast();
setSyncing(false);
}
}