Skip to content

Commit c5e8933

Browse files
committed
Merge branch 'fix/no-sim-slot-none' into 'main'
Remove SIM "None" label Closes #190 See merge request apple/cell-guard!54
2 parents 2de6269 + ba3c439 commit c5e8933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CellGuardAppSwift/CellGuard/User Interface/Cells/CellListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private struct ListPacketCell: View {
270270
HStack(spacing: 2) {
271271
Image(systemName: "simcard")
272272
.font(.system(size: 12))
273-
Text(simSlots.map { "\($0)" }.sorted().joined(separator: ","))
273+
Text(simSlots.filter { $0 != 0}.map { "\($0)" }.sorted().joined(separator: ","))
274274
.font(.system(size: 14))
275275
}
276276
.foregroundColor(.gray)

CellGuardAppSwift/CellGuard/User Interface/Connectivity/ConnectivityView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ struct ConnectivityEventListEntry: View {
168168
HStack(spacing: 2) {
169169
Image(systemName: "simcard")
170170
.font(.system(size: 12))
171-
Text(simSlots.map { $0 == 0 ? "None" : "\($0)" }.sorted().joined(separator: ","))
171+
Text(simSlots.filter { $0 != 0}.map { "\($0)" }.sorted().joined(separator: ","))
172172
.font(.system(size: 14))
173173
}
174174
.foregroundColor(.gray)

0 commit comments

Comments
 (0)