chore: prevent unhandled promise lint warnings in assignment toast handlers
This commit is contained in:
@@ -51,7 +51,7 @@ export default function EditAssignmentForm({
|
||||
if (response?.errors) {
|
||||
Object.values(response.errors as Record<string, string[]>).forEach(
|
||||
(messages) => {
|
||||
messages.forEach((msg) => toast.error(msg))
|
||||
messages.forEach((msg) => void toast.error(msg))
|
||||
},
|
||||
)
|
||||
return
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function CreateAssignmentForm({
|
||||
if (response?.errors) {
|
||||
Object.values(response.errors as Record<string, string[]>).forEach(
|
||||
(messages) => {
|
||||
messages.forEach((msg) => toast.error(msg))
|
||||
messages.forEach((msg) => void toast.error(msg))
|
||||
},
|
||||
)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user