Commit dcf35b8a authored by Agustin's avatar Agustin
Browse files

Fix to sheet parser, didnt recognize people through height

parent 07a103f7
Pipeline #16235 passed with stage
in 1 minute and 54 seconds
......@@ -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');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment