Merge branch 'dev' into 'staging'

если юзер не загружал данные - это показывается

See merge request frontend/admin!51
This commit is contained in:
Nastya 2024-02-16 15:48:55 +00:00
commit ae0037330c
2 changed files with 3 additions and 1 deletions

@ -76,6 +76,7 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
await requestVefification();
};
console.log("verificationInfo", verificationInfo)
return (
<Box sx={{ padding: "25px" }}>
<Typography

@ -19,9 +19,10 @@ const translateMessage: Record<string, string> = {
export const parseAxiosError = (nativeError: unknown): [string, number?] => {
const error = nativeError as AxiosError;
console.log(error)
if (
error.response?.data &&
error.response?.data && error.response?.data !== "Not Found" &&
"statusCode" in (error.response.data as ServerError)
) {
const serverError = error.response.data as ServerError