update club to use the new copy system to receive its broadcast code

sync2
Laurent 10 months ago
parent bdea94f472
commit 780d93dfe2
  1. 7
      PadelClub/Data/Club.swift

@ -12,12 +12,7 @@ import LeStorage
@Observable @Observable
final class Club: BaseClub { final class Club: BaseClub {
override func copyFromServerInstance(_ instance: any Storable) -> Bool { static var copyServerResponse: Bool { return true }
guard let copy = instance as? Club else { return false }
self.broadcastCode = copy.broadcastCode
// Logger.log("write code: \(self.broadcastCode)")
return true
}
func clubTitle(_ displayStyle: DisplayStyle = .wide) -> String { func clubTitle(_ displayStyle: DisplayStyle = .wide) -> String {
switch displayStyle { switch displayStyle {

Loading…
Cancel
Save