Hide fetch notification if error

This commit is contained in:
jeffvli 2023-05-21 18:19:43 -07:00
parent 64c5f25d18
commit 07d4dc37b5

View file

@ -112,6 +112,10 @@ export const useHandlePlayQueueAdd = () => {
return null;
}
clearTimeout(timeoutIds.current[fetchId] as ReturnType<typeof setTimeout>);
delete timeoutIds.current[fetchId];
toast.hide(fetchId);
return toast.error({
message: err.message,
title: 'Play queue add failed',