Fix error toast on playlist save

This commit is contained in:
jeffvli
2021-10-05 18:25:45 -07:00
parent e6fd58c00d
commit 2bf76553d3

View File

@@ -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'], {