This commit is contained in:
Mel O'Hagan 2022-07-20 10:59:27 +01:00
parent ec586191e7
commit 1d15e4a999
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)