Fix form validation

This commit is contained in:
Sacha Weatherstone committed 2022-08-27 20:33:49 +10:00
1 parent 4099fb60c2
commit cf47855f23
2 files changed
+3 -3

No files matched your search

@@ -118,7 +118,7 @@ export const LoRa = (): JSX.Element => {
{...register("txPower", { valueAsNumber: true })}
/>
<TextInputField
label="Hop Count"
label="Hop Limit"
description="This is a description."
hint="Hops"
type="number"
+2 -2
View File
@@ -15,7 +15,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
bandwidth: number;
@IsInt()
// @Min(7)
@Min(7)
@Max(12)
spreadFactor: number;
@@ -31,7 +31,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
region: Protobuf.Config_LoRaConfig_RegionCode;
@IsInt()
@Min(0)
@Min(1)
@Max(7)
hopLimit: number;