From 82e5f60e6502272c3b61ca2c4d2e487826b60ff2 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 14 Jun 2022 03:57:06 -0700 Subject: [PATCH] fix (#1517) --- src/@context/MarketMetadata/_queries.ts | 4 +++- src/@context/MarketMetadata/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/@context/MarketMetadata/_queries.ts b/src/@context/MarketMetadata/_queries.ts index 84586f82f..ba13dd606 100644 --- a/src/@context/MarketMetadata/_queries.ts +++ b/src/@context/MarketMetadata/_queries.ts @@ -5,7 +5,9 @@ export const opcQuery = gql` opc(id: 1) { swapOceanFee swapNonOceanFee - approvedTokens + approvedTokens { + id + } id } } diff --git a/src/@context/MarketMetadata/index.tsx b/src/@context/MarketMetadata/index.tsx index 209fac7c0..a9e2145b9 100644 --- a/src/@context/MarketMetadata/index.tsx +++ b/src/@context/MarketMetadata/index.tsx @@ -36,7 +36,7 @@ function MarketMetadataProvider({ opcData.push({ chainId: appConfig.chainIdsSupported[i], - approvedTokens: response.data?.opc.approvedTokens, + approvedTokens: response.data?.opc.approvedTokens?.map((x) => x.id), swapApprovedFee: response.data?.opc.swapOceanFee, swapNotApprovedFee: response.data?.opc.swapNonOceanFee } as OpcFee)