chore: prevent unhandled promise lint warnings in assignment toast handlers

This commit is contained in:
2026-05-12 00:40:44 +02:00
parent 5bb5223cd9
commit fab2ba8835
2 changed files with 2 additions and 2 deletions
@@ -51,7 +51,7 @@ export default function EditAssignmentForm({
if (response?.errors) { if (response?.errors) {
Object.values(response.errors as Record<string, string[]>).forEach( Object.values(response.errors as Record<string, string[]>).forEach(
(messages) => { (messages) => {
messages.forEach((msg) => toast.error(msg)) messages.forEach((msg) => void toast.error(msg))
}, },
) )
return return
@@ -50,7 +50,7 @@ export default function CreateAssignmentForm({
if (response?.errors) { if (response?.errors) {
Object.values(response.errors as Record<string, string[]>).forEach( Object.values(response.errors as Record<string, string[]>).forEach(
(messages) => { (messages) => {
messages.forEach((msg) => toast.error(msg)) messages.forEach((msg) => void toast.error(msg))
}, },
) )
return return