Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Sep 12, 2024
1 parent ae814bf commit 588a39e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HabitRPG/UI/Social/QuestDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ class QuestDetailViewController: BaseUIViewController {
}

if group.quest?.leaderID != userRepository.currentUserId {
leaveButton.isHidden = hideRSVPButtons
leaveButton.isHidden = !(isQuestActive && participants.contains(where: { participant in
return participant.userID == userRepository.currentUserId
}))
} else {
leaveButton.isHidden = true
}
Expand Down

0 comments on commit 588a39e

Please sign in to comment.