use success notification instead of warn on 0 playlist entries added (#1393)

This commit is contained in:
jeffvli
2025-12-15 21:15:20 -08:00
parent 9e49a45db9
commit 8464ed439e
@@ -202,8 +202,12 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
} }
if (allSongIds.length === 0) { if (allSongIds.length === 0) {
toast.warn({ toast.success({
message: t('common.noResultsFromQuery', { postProcess: 'sentenceCase' }), message: t('form.addToPlaylist.success', {
message: 0,
numOfPlaylists: 1,
postProcess: 'sentenceCase',
}),
}); });
return; return;
} }
@@ -241,8 +245,12 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
} }
if (songsToAdd.length === 0) { if (songsToAdd.length === 0) {
toast.warn({ toast.success({
message: t('common.noResultsFromQuery', { postProcess: 'sentenceCase' }), message: t('form.addToPlaylist.success', {
message: 0,
numOfPlaylists: 1,
postProcess: 'sentenceCase',
}),
}); });
return; return;
} }