From df845e50de1b81fa55d10ab6d7dd8e3855d9aa36 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:21:28 -0500 Subject: [PATCH] fix(deployment): Update apps/deploy-web/src/queries/useBidQuery.ts Co-authored-by: Iaroslav Gryshaiev --- apps/deploy-web/src/queries/useBidQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/deploy-web/src/queries/useBidQuery.ts b/apps/deploy-web/src/queries/useBidQuery.ts index 39287a77f..05cd115dd 100644 --- a/apps/deploy-web/src/queries/useBidQuery.ts +++ b/apps/deploy-web/src/queries/useBidQuery.ts @@ -11,7 +11,7 @@ async function getBidList(apiEndpoint: string, address: string, dseq: string): P if (!address || !dseq) return null; const response = await axios.get<{ bids: RpcBid[] }>(ApiUrlService.bidList(apiEndpoint, address, dseq)); - const bids = response.data.bids as RpcBid[]; + const { bids } = response.data; return bids.map((b: RpcBid) => ({ id: b.bid.bid_id.provider + b.bid.bid_id.dseq + b.bid.bid_id.gseq + b.bid.bid_id.oseq,