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) {
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user