This commit is contained in:
Mel O'Hagan 2022-07-20 10:59:27 +01:00
parent 6e63151143
commit 5db7a80dcd
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ export const API = createAPIClient({
const validationErrors = error?.json?.validationErrors
if (validationErrors) {
for (let field in validationErrors) {
notificationStore.actions.error(`${field} ${validationErrors[field]}`)
notificationStore.actions.error(
`${field} ${validationErrors[field]}`
)
}
} else {
notificationStore.actions.error(message)