Skip to content

Commit

Permalink
Fix pr #399: Fix issue #398: Achievement Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Feb 22, 2025
1 parent e6b8bf5 commit ad29c4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/libs/quest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ export const isAvailableUserQuests = (
new Date(questAndUserQuestInfo.expiresAt) > new Date();
const prevCheck =
questAndUserQuestInfo.questType !== "event" ||
questAndUserQuestInfo.questType === "tier" ||
questAndUserQuestInfo.questType === "achievement" ||
((questAndUserQuestInfo.questType === "tier" || questAndUserQuestInfo.questType === "achievement") && questAndUserQuestInfo.completed === 0) ||
!questAndUserQuestInfo.previousAttempts ||
(questAndUserQuestInfo.previousAttempts <= 1 &&
questAndUserQuestInfo.completed === 0);
Expand Down

0 comments on commit ad29c4c

Please sign in to comment.