That should do it

This commit is contained in:
Daniel Odendahl Jr
2017-04-02 15:40:03 +00:00
parent c5cb2ecf4e
commit 5e3485791c
+3 -3
View File
@@ -14,10 +14,10 @@ module.exports = class RomanCommand extends commando.Command {
prompt: 'What do you want to convert to Roman?', prompt: 'What do you want to convert to Roman?',
type: 'integer', type: 'integer',
validate: number => { validate: number => {
if (number > 1000000 || number < 1) { if (number < 1000001 && number > 0) {
return 'Please enter a number below one million and above zero.'; return true;
} }
return true; return 'Please enter a number below one million and above zero.';
} }
}] }]
}); });