Fixed Widget stats
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
@@ -493,13 +492,14 @@ struct Attempt: Identifiable, Codable, Hashable {
|
||||
}
|
||||
|
||||
func updated(
|
||||
result: AttemptResult? = nil, highestHold: String? = nil, notes: String? = nil,
|
||||
problemId: UUID? = nil, result: AttemptResult? = nil, highestHold: String? = nil,
|
||||
notes: String? = nil,
|
||||
duration: Int? = nil, restTime: Int? = nil
|
||||
) -> Attempt {
|
||||
return Attempt(
|
||||
id: self.id,
|
||||
sessionId: self.sessionId,
|
||||
problemId: self.problemId,
|
||||
problemId: problemId ?? self.problemId,
|
||||
result: result ?? self.result,
|
||||
highestHold: highestHold ?? self.highestHold,
|
||||
notes: notes ?? self.notes,
|
||||
|
||||
Reference in New Issue
Block a user