This commit is contained in:
2026-06-24 14:20:05 +02:00
commit 1c859d20c8
442 changed files with 25625 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { FieldError } from '@/generated/graphql/graphql'
type Result = Record<string, string>
export const errorMapper = (errors: FieldError[]): Result => {
const result: Result = {}
errors.forEach(({ field, message }) => {
if (field) {
result[field] = message
}
})
return result
}
+1
View File
@@ -0,0 +1 @@
export * from './errorMapper'