если юзер не загружал данные - это показывается
This commit is contained in:
parent
fdcb642ade
commit
7a875819d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user