catch 수정 및 불필요 api 삭제 api 변경 내역 수정

This commit is contained in:
focp212@naver.com
2025-11-07 15:16:14 +09:00
parent e5342f1d0a
commit b5db56fd70
63 changed files with 498 additions and 507 deletions

View File

@@ -34,6 +34,7 @@ import { usePaymentNonCardMutation } from '../api/use-payment-non-card-mutation'
import { usePaymentInstallmentMutation } from '../api/use-payment-installment-mutation';
import { useStore } from '@/shared/model/store';
import { showAlert } from '@/widgets/show-alert';
import { snackBar } from '@/shared/lib';
export const InfoWrap = () => {
const { t } = useTranslation();
@@ -158,7 +159,7 @@ export const InfoWrap = () => {
setMoneyPointTabItems(rs.moneyPointTab.items);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
snackBar(e.response?.data?.error?.message);
return;
}
});
@@ -179,7 +180,7 @@ export const InfoWrap = () => {
setFeeRate(rs.otherPaymentData.feeRate);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
snackBar(e.response?.data?.error?.message);
return;
}
});
@@ -195,7 +196,7 @@ export const InfoWrap = () => {
setInstallmentData(rs.installmentData);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
snackBar(e.response?.data?.error?.message);
return;
}
});
@@ -220,7 +221,7 @@ export const InfoWrap = () => {
}
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
snackBar(e.response?.data?.error?.message);
return;
}
});