Skip to content

Commit bec1d6d

Browse files
committed
Fix validation
1 parent d71ab84 commit bec1d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ui/thermostat/ClimatePreset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function PresetForm(props: PresetFormProps): JSX.Element {
145145
return t.keyCannotContainSpaces
146146
}
147147

148-
const exists = !otherClimatePresets.some(
148+
const exists = otherClimatePresets.some(
149149
(other) => other.climate_preset_key === value
150150
)
151151

0 commit comments

Comments
 (0)