diff --git a/Client/app/context/AuthContext.tsx b/Client/app/context/AuthContext.tsx index de13c28..5cd051a 100644 --- a/Client/app/context/AuthContext.tsx +++ b/Client/app/context/AuthContext.tsx @@ -12,6 +12,10 @@ export const getApiErrorMessage = (error: any): string => { } } + if (error && error.detail) { + return error.detail; + } + if (error && error.title) { return error.title; }