Merge branch 'dev' into 'staging'
если юзер не загружал данные - это показывается See merge request frontend/admin!51
This commit is contained in:
commit
ae0037330c
@ -76,6 +76,7 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
|
|||||||
await requestVefification();
|
await requestVefification();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log("verificationInfo", verificationInfo)
|
||||||
return (
|
return (
|
||||||
<Box sx={{ padding: "25px" }}>
|
<Box sx={{ padding: "25px" }}>
|
||||||
<Typography
|
<Typography
|
||||||
|
@ -19,9 +19,10 @@ const translateMessage: Record<string, string> = {
|
|||||||
|
|
||||||
export const parseAxiosError = (nativeError: unknown): [string, number?] => {
|
export const parseAxiosError = (nativeError: unknown): [string, number?] => {
|
||||||
const error = nativeError as AxiosError;
|
const error = nativeError as AxiosError;
|
||||||
|
console.log(error)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
error.response?.data &&
|
error.response?.data && error.response?.data !== "Not Found" &&
|
||||||
"statusCode" in (error.response.data as ServerError)
|
"statusCode" in (error.response.data as ServerError)
|
||||||
) {
|
) {
|
||||||
const serverError = error.response.data as ServerError
|
const serverError = error.response.data as ServerError
|
||||||
|
Loading…
Reference in New Issue
Block a user