diff --git a/front/src/api/auction/api.ts b/front/src/api/auction/api.ts index d03cb7ed..ed9edb06 100644 --- a/front/src/api/auction/api.ts +++ b/front/src/api/auction/api.ts @@ -58,7 +58,7 @@ async function requestAuctionBid( baseUrl: string, auctionId: number, request: AuctionPurchaseRequest, - onSuccess: (uuid: string) => void, + onSuccess: (uuid: number) => void, onFailure: (message: string) => void ) { try { diff --git a/front/src/api/auction/type.ts b/front/src/api/auction/type.ts index 9b9ded3b..b578f00f 100644 --- a/front/src/api/auction/type.ts +++ b/front/src/api/auction/type.ts @@ -6,7 +6,7 @@ interface AuctionsRequest { } interface AuctionBidResponse { - uuid: string; + uuid: number; message: string; errorCode: string; } diff --git a/front/src/pages/auction/detail/AuctionDetail.tsx b/front/src/pages/auction/detail/AuctionDetail.tsx index 577145d5..1575c00c 100644 --- a/front/src/pages/auction/detail/AuctionDetail.tsx +++ b/front/src/pages/auction/detail/AuctionDetail.tsx @@ -13,11 +13,13 @@ import useAlert from "../../../hooks/useAlert"; import {getAuctionProgress} from "../../../util/NumberUtil" import arrowLeftIcon from '../../../img/arrow-left.svg'; import Confetti from 'react-confetti'; +import {useReceiptStore} from "../../../store/ReceiptStore"; function AuctionDetail({auctionId}: { auctionId?: number }) { const {currentPage, setPage} = usePageStore(); + const {receiptId, setReceiptId} = useReceiptStore(); const baseUrl = process.env.REACT_APP_API_URL || '' const {showAlert} = useAlert(); const [auction, setAuction] = useState(null); @@ -200,6 +202,7 @@ function AuctionDetail({auctionId}: { auctionId?: number }) { setIsButtonDisabled(true); // 버튼 비활성화 setCountdown(5); // 5초 카운트다운 시작 setPage('waiting'); + setReceiptId(uuid); }, (message) => { showAlert(message);