Fix form validation

This commit is contained in:
Sacha Weatherstone
2022-08-27 20:33:49 +10:00
parent 4099fb60c2
commit cf47855f23
2 changed files with 3 additions and 3 deletions
@@ -118,7 +118,7 @@ export const LoRa = (): JSX.Element => {
{...register("txPower", { valueAsNumber: true })} {...register("txPower", { valueAsNumber: true })}
/> />
<TextInputField <TextInputField
label="Hop Count" label="Hop Limit"
description="This is a description." description="This is a description."
hint="Hops" hint="Hops"
type="number" type="number"
+2 -2
View File
@@ -15,7 +15,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
bandwidth: number; bandwidth: number;
@IsInt() @IsInt()
// @Min(7) @Min(7)
@Max(12) @Max(12)
spreadFactor: number; spreadFactor: number;
@@ -31,7 +31,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
region: Protobuf.Config_LoRaConfig_RegionCode; region: Protobuf.Config_LoRaConfig_RegionCode;
@IsInt() @IsInt()
@Min(0) @Min(1)
@Max(7) @Max(7)
hopLimit: number; hopLimit: number;