fix issue with planned date

newoffer2025
Razmig Sarkissian 5 months ago
parent fae2e79207
commit 64a324608d
  1. 4
      PadelClubData/Data/GroupStage.swift
  2. 6
      PadelClubData/Data/Match.swift
  3. 4
      PadelClubData/Data/Round.swift

@ -29,9 +29,7 @@ final public class GroupStage: BaseGroupStage, SideStorable {
// MARK: - DidSet
public override func didSetStartDate() {
if self.tournamentValue()?.hasStarted() == false {
plannedStartDate = startDate
}
plannedStartDate = startDate
}
// MARK: - Computed dependencies

@ -28,11 +28,7 @@ final public class Match: BaseMatch, SideStorable {
if hasStarted() {
return
}
if self.roundValue()?.tournamentObject()?.hasStarted() == false {
plannedStartDate = startDate
} else if self.groupStageValue()?.tournamentObject()?.hasStarted() == false {
plannedStartDate = startDate
}
plannedStartDate = startDate
}
// MARK: -

@ -24,9 +24,7 @@ final public class Round: BaseRound, SideStorable {
// MARK: - DidSet
public override func didSetStartDate() {
if self.tournamentValue()?.hasStarted() == false {
plannedStartDate = startDate
}
plannedStartDate = startDate
}
// MARK: - Computed dependencies

Loading…
Cancel
Save