Rev 1216 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
export const handleApiError = (error) => {if (typeof error === 'string') {return error;}return Object.entries(error).map(([key, value]) => ({key,message: Array.isArray(value) ? value[0] : value}));};