mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Remove magic values
This commit is contained in:
parent
b5ea0239f6
commit
5c186286a0
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ struct DeviceConfig: View {
|
|||
}
|
||||
}
|
||||
.onChange(of: deviceRole) { _, newRole in
|
||||
if hasChanges && [2, 4, 11].contains(newRole) {
|
||||
if hasChanges && [DeviceRoles.router.rawValue, DeviceRoles.routerLate.rawValue, DeviceRoles.repeater.rawValue].contains(newRole) {
|
||||
showRouterWarning = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue