catch 수정 및 불필요 api 삭제 api 변경 내역 수정
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
} from '../model/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
|
||||
export const InfoWrap = () => {
|
||||
const { t } = useTranslation();
|
||||
@@ -35,7 +36,7 @@ export const InfoWrap = () => {
|
||||
setData(rs);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
snackBar(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,6 +15,7 @@ import { CardSection } from './section/card-section';
|
||||
import { EscrowSection } from './section/escrow-section';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
|
||||
export const RegistrationStatusWrap = () => {
|
||||
const { t } = useTranslation();
|
||||
@@ -44,7 +45,7 @@ export const RegistrationStatusWrap = () => {
|
||||
setEscrow(rs.escrow);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
snackBar(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user