Closed wrap-that-potassium closed 3 years ago
Bug in form validation rules.
validationRules: Array<Function> = [
(val: string) => val == '' || Number.parseInt(val) > 0 || 'Amount should be more than zero',
(val: string) => this.isLowerThanMax(val) || `Not enough ${this.currency} available!`
]
parseInt
should parseFloat
instead!
Still does not work with swaps amount like "0.12". The validation rule is okay but the the "Swap" button is still disabled.
The form does not allow to withdraw 0.6 BAN for example: