6f7cd96e9f
* fix(purchasing): more number validation * test(purchasing): add error cases Also refactor NaN check and create client mixin * fix(purchasing): cover "purchase" cases
8 lines
159 B
JavaScript
8 lines
159 B
JavaScript
export default {
|
|
computed: {
|
|
numberInvalid () {
|
|
return this.selectedAmountToBuy < 1 || !Number.isInteger(this.selectedAmountToBuy);
|
|
},
|
|
},
|
|
};
|