Skip to content

Commit

Permalink
Fix #204
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Jun 3, 2020
1 parent 68bee84 commit f4e6631
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public struct TodaySection: Codable, Hashable, Identifiable {
public struct TodaySection: Codable, Hashable, Identifiable, Equatable {
public let name: Name
public var enabled: Bool
public var id: Name { name }
Expand All @@ -16,6 +16,10 @@ public struct TodaySection: Codable, Hashable, Identifiable {
self.name = name
self.enabled = enabled
}

public static func == (lhs: TodaySection, rhs: TodaySection) -> Bool {
lhs.id == rhs.id
}
}

extension TodaySection {
Expand Down

0 comments on commit f4e6631

Please sign in to comment.