From 2bf76553d36faaa1920f29a28c232ed069b2ca37 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 5 Oct 2021 18:25:45 -0700 Subject: [PATCH] Fix error toast on playlist save --- src/components/playlist/PlaylistView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playlist/PlaylistView.tsx b/src/components/playlist/PlaylistView.tsx index cd08d77..97e1cc1 100644 --- a/src/components/playlist/PlaylistView.tsx +++ b/src/components/playlist/PlaylistView.tsx @@ -196,7 +196,7 @@ const PlaylistView = ({ ...rest }) => { if (playlistData.length <= 400 && !recovery) { res = await updatePlaylistSongs(data.id, playlistData); if (isFailedResponse(res)) { - notifyToast('error', res.error.message); + notifyToast('error', errorMessages(res)[0]); } else { notifyToast('success', `Saved playlist`); await queryClient.refetchQueries(['playlist'], {