Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions LoopFollow/Remote/Settings/RemoteSettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@ class RemoteSettingsViewModel: ObservableObject {

// Determine if a comparison is needed and perform it.
switch remoteType {
case .loopAPNS, .trc:
// For both Loop and TRC, the target Team ID is in the same storage location.
case .trc:
// If the target ID is empty, there's nothing to compare.
guard !targetTeamId.isEmpty else {
return false
}
// Return true if the IDs are different.
return loopFollowTeamID != targetTeamId

case .none, .nightscout:
case .loopAPNS, .none, .nightscout:
// For other remote types, this check is not applicable.
return false
}
Expand Down