diff --git a/src/Services/SheetService.ts b/src/Services/SheetService.ts index 20ab878a3f913a4a820f5f6a51d06eb3b14ae261..645596bf772a73f9fc955dbf0420e3952d3da840 100644 --- a/src/Services/SheetService.ts +++ b/src/Services/SheetService.ts @@ -73,11 +73,11 @@ const getLiteralGroup = (age: number): string => { const validator = (instance: any) => { if (typeof instance.edad !== 'number') { throw new Error('Edad should be a number'); - } else if (instance.peso !== undefined) { + } else if (instance.peso !== '') { if (typeof instance.peso !== 'number') { throw new Error('Peso should be a number'); } - } else if (instance.talla !== undefined) { + } else if (instance.talla !== '') { if (typeof instance.talla !== 'number') { throw new Error('Talla should be a number'); }