diff --git a/Packages/Models/Sources/Models/Status.swift b/Packages/Models/Sources/Models/Status.swift index 114aef44..c24e654a 100644 --- a/Packages/Models/Sources/Models/Status.swift +++ b/Packages/Models/Sources/Models/Status.swift @@ -57,7 +57,10 @@ public protocol AnyStatus { extension AnyStatus { public var viewId: String { get { - "\(id)\(createdAt.asDate.description)\(editedAt?.asDate.description ?? "")" + if let editedAt { + return "\(id)\(editedAt.asDate.description)" + } + return id } } }