- 수정사항 적용

This commit is contained in:
HyeonJongKim
2025-11-17 10:39:38 +09:00
parent 6c94b1d039
commit 67a5d91cdb
7 changed files with 65 additions and 28 deletions

View File

@@ -4,7 +4,7 @@ import { FullMenuClose } from '@/entities/common/ui/full-menu-close';
import { useTranslation } from 'react-i18next';
import { AllTransactionAllCancel } from './all-transaction-all-cancel';
import { AllTransactionPartCancel } from './all-transaction-part-cancel';
import { AllTransactionCancelInfoParams, AllTransactionCancelInfoResponse, AllTransactionCancelParams, AllTransactionCancelResponse, CancelTabKeys, DebtPreventionCancelDisplayInfo, DebtPreventionCancelRequestInfo } from '../model/types';
import { AllTransactionCancelInfoParams, AllTransactionCancelInfoResponse, AllTransactionCancelParams, CancelTabKeys, DebtPreventionCancelDisplayInfo, DebtPreventionCancelRequestInfo } from '../model/types';
import { useEffect, useState } from 'react';
import { useAllTransactioCancleMutation } from '../api/use-all-transaction-cancel-mutation';
import { useAllTransactioCancleInfoMutation } from '../api/use-all-transaction-cancel-info-mutation';
@@ -132,9 +132,14 @@ export const AllTransactionCancel = ({
isNpg: isNpg,
serviceCode: serviceCode
};
transactionCancel(transactionCancelParams).then((rs: AllTransactionCancelResponse) => {
transactionCancel(transactionCancelParams).then((rs: any) => {
console.log(rs);
setRequestSuccess(true);
if(rs.resultCode === "2024") {
snackBar(rs.resultMessage);
setRequestSuccess(false);
} else {
setRequestSuccess(true);
}
}).catch((e: any) => {
setRequestSuccess(false);
if(e.response?.data?.error?.message){