diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 9aa8d83..e05c020 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -1195,8 +1195,7 @@ extension DashboardSnapshot { /// usage taken from the first Mac that reports it (a user's Macs share one account, so their /// windows match — summing would double-count), and provider status feeds unioned by provider /// (provider status is global, not per-Mac). - static func merged(_ snapshots: some Collection) -> DashboardSnapshot { - let snaps = Array(snapshots) + static func merged(_ snaps: [DashboardSnapshot]) -> DashboardSnapshot { guard snaps.count != 1 else { return snaps[0] } guard !snaps.isEmpty else { return .empty }