Skip to content

Commit

Permalink
Merge pull request #467 from decert-me/feat-466
Browse files Browse the repository at this point in the history
feat: modify claimed challenge
  • Loading branch information
0xdwong authored Nov 13, 2024
2 parents d977f06 + eea38a3 commit 47ed891
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/User/ChallengeItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
<div className="edit" onClick={goEdit}>
<EditOutlined />
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/views/Publish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 47ed891

Please sign in to comment.