mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* 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);
|
|
},
|
|
},
|
|
};
|