Skip to content

Commit f4e6631

Browse files
committed
Fix #204
1 parent 68bee84 commit f4e6631

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ACHNBrowserUI/ACHNBrowserUI/packages/Backend/Sources/Backend/models/TodaySection.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct TodaySection: Codable, Hashable, Identifiable {
10+
public struct TodaySection: Codable, Hashable, Identifiable, Equatable {
1111
public let name: Name
1212
public var enabled: Bool
1313
public var id: Name { name }
@@ -16,6 +16,10 @@ public struct TodaySection: Codable, Hashable, Identifiable {
1616
self.name = name
1717
self.enabled = enabled
1818
}
19+
20+
public static func == (lhs: TodaySection, rhs: TodaySection) -> Bool {
21+
lhs.id == rhs.id
22+
}
1923
}
2024

2125
extension TodaySection {

0 commit comments

Comments
 (0)