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 ad29c4c commit 37514a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/server/api/routers/quests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export const questsRouter = createTRPCRouter({
return errorResponse(`Rank ${user.rank} not allowed`);
}
const current = user.userQuests?.filter(
(q) => !q.endAt && q.quest.questType === "event" && !["tier", "achievement"].includes(q.quest.questType),
(q) => !q.endAt && q.quest.questType === "event" && !q.quest.questType.includes("tier") && !q.quest.questType.includes("achievement"),
);
if (!["mission", "crime"].includes(questData.questType)) {
if (current && current.length >= 4) {
Expand Down

0 comments on commit 37514a4

Please sign in to comment.