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

This commit is contained in:
Nastya 2024-02-16 18:48:08 +03:00
parent fdcb642ade
commit 7a875819d5
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