Adding check for out of order numbers
This commit is contained in:
@@ -15,5 +15,9 @@ export default {
|
||||
} else {
|
||||
this.maximum = -1;
|
||||
}
|
||||
|
||||
if (this.minimum > this.maximum && this.maximum !== -1) {
|
||||
throw `Numbers out of order: ${this.textValue}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user