Skip to content

Commit

Permalink
Merge pull request #90 from Itheum/d-david
Browse files Browse the repository at this point in the history
hot fix my listed
  • Loading branch information
damienen authored Aug 8, 2023
2 parents c293e46 + 1d2e9f0 commit fa95ff9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/MyListed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const MyListed = () => {

async function fetchDataNfts() {
setIsNftLoading(true);

const _dataNfts: DataNft[] = await DataNft.createManyFromApi(offers.map((offer) => offer.offeredTokenNonce));
const nonces: number[] = offers.map((offer) => offer.offeredTokenNonce);
const _dataNfts: DataNft[] = await DataNft.createManyFromApi(nonces);
console.log("_dataNfts", _dataNfts);
setDataNfts(_dataNfts);

Expand All @@ -52,6 +52,8 @@ export const MyListed = () => {
}, [address, hasPendingTransactions]);

useEffect(() => {
if (!offers.length) return;

fetchDataNfts();
}, [offers]);

Expand Down

0 comments on commit fa95ff9

Please sign in to comment.