Skip to content

Commit

Permalink
Merge pull request #459 from decert-me/hotfix-nft
Browse files Browse the repository at this point in the history
hotfix: claim
  • Loading branch information
0xdwong authored Sep 10, 2024
2 parents 87751ad + a6c64ef commit 1129836
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/Claim/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ export default function Claim(params) {
return
}

if (!dataAnswer && address) {
navigateTo(`/quests/${questId}`)
return
}

// 判断是否有开放题 || 判断当前挑战是否更新(后端没有答案的情况下校验本地缓存)
if ((dataAnswer && hasOpenQuest(dataAnswer, res.data)) || (!dataAnswer && realAnswerInit(cache, res.data))) {
return
Expand Down

0 comments on commit 1129836

Please sign in to comment.