mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
[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:
parent
45e589fbb1
commit
bbf59a4942
13 changed files with 14 additions and 14 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue