From eea38a3a3f311063d8ba4dc50118867cbc7d1d7a Mon Sep 17 00:00:00 2001 From: unknown <2391580279@qq.com> Date: Tue, 12 Nov 2024 21:24:15 +0800 Subject: [PATCH] feat: modify claimed challenge --- src/components/User/ChallengeItem.js | 3 ++- src/views/Publish/index.js | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/User/ChallengeItem.js b/src/components/User/ChallengeItem.js index 79fd8244..e0acbf57 100644 --- a/src/components/User/ChallengeItem.js +++ b/src/components/User/ChallengeItem.js @@ -146,7 +146,8 @@ export default function ChallengeItem(props) { } {/* 编辑 */} { - profile && info?.creator === profile?.address && info?.has_claim !== undefined && + profile && info?.creator === profile?.address && + // info?.has_claim !== undefined &&
diff --git a/src/views/Publish/index.js b/src/views/Publish/index.js index a6bfb37c..382e2d06 100644 --- a/src/views/Publish/index.js +++ b/src/views/Publish/index.js @@ -293,11 +293,11 @@ export default function Publish(params) { return } // 是否有人铸造 - const isClaim = await hasClaimed(tokenId); - if (isClaim) { - return - } - console.log(data); + // const isClaim = await hasClaimed(tokenId); + // if (isClaim) { + // return + // } + // console.log(data); // 获取对应challenge信息 const { title, description, recommend, metadata, quest_data, uri, uuid, chain_id, category } = data; const answers = JSON.parse(decode(data.quest_data.answers))