Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prabal4546 committed Aug 30, 2021
1 parent 1ebca96 commit e8d7c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unwrap/Activities/Challenges/ChallengesDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ChallengesDataSource: NSObject, UITableViewDataSource {
}
/// Swipe to delete
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
if indexPath.section == 1{
if indexPath.section == 1 && User.current.dailyChallenges.count > 0{
return true
}else{
return false
Expand Down

0 comments on commit e8d7c0d

Please sign in to comment.