[bugfix]: Fix add to playlist success message

The prior code used `form.addToPlaylist`, not `.success`. Also fixes English pluralization and
uses the correct `entity.track` as opposed to `entity.song` for other languages (I am not sure
if the en syntax could be applied to other languages, so I will just leave pluralization as-is
for now).
This commit is contained in:
Kendall Garner 2024-01-25 23:58:21 -08:00
parent 45e589fbb1
commit bbf59a4942
No known key found for this signature in database
GPG key ID: 18D2767419676C87
13 changed files with 14 additions and 14 deletions

View file

@ -191,12 +191,12 @@ export const AddToPlaylistContextModal = ({
const addMessage =
values.skipDuplicates &&
allSongIds.length * values.playlistId.length !== totalUniquesAdded
? `${Math.floor(totalUniquesAdded / values.playlistId.length)}`
? Math.floor(totalUniquesAdded / values.playlistId.length)
: allSongIds.length;
setIsLoading(false);
toast.success({
message: t('form.addToPlaylist', {
message: t('form.addToPlaylist.success', {
message: addMessage,
numOfPlaylists: values.playlistId.length,
postProcess: 'sentenceCase',