Skip to content
Snippets Groups Projects
Commit dcf35b8a authored by Agustin's avatar Agustin
Browse files

Fix to sheet parser, didnt recognize people through height

parent 07a103f7
No related branches found
No related tags found
No related merge requests found
Pipeline #16235 passed
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment