Remove magic values

This commit is contained in:
Garth Vander Houwen 2025-07-16 23:39:07 -07:00
parent b5ea0239f6
commit 5c186286a0

View file

@ -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
}
}