Skip to content

Commit

Permalink
fix customentity factor validator
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Nov 25, 2024
1 parent 558f438 commit eeef5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/src/app/main/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ export const entityItemValidation = (entity: EntityItem[], entityItem: EntityIte
{ type: 'number', min: 0, max: 255, message: 'Must be between 0 and 255' }
],
factor: [
{ required: true, message: 'Bytes is required' },
{ type: 'number', min: 1, max: 255, message: 'Must be between 1 and 255' }
{ required: true, message: 'is required' },
{ type: 'number', message: 'Must be a number' }
]
});

Expand Down

0 comments on commit eeef5a8

Please sign in to comment.