Skip to content

Commit

Permalink
feat: AddToListSelect input not only creates new list, but adds curre…
Browse files Browse the repository at this point in the history
…nt id to the list
  • Loading branch information
olyalass committed Jul 28, 2024
1 parent c0689ae commit 7807fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AddToListSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function AddToListSelect({
if (verification.isValid) {
setIsNewNameInvalid(false)
setListNames([...listNames].splice(0, 1, 'add', trimmedName))
dispatch(postNewList(trimmedName))
dispatch(postNewList(trimmedName, [animeId]))
} else {
setIsNewNameInvalid(true)
setWarningMessage(verification.message)
Expand Down

0 comments on commit 7807fd4

Please sign in to comment.