currently, users can sell more currency then they have. We need to prevent this.
can we do a check on the front end as the form is populated that displays an error msg when a user enters a value in the form to sell greater then what they have? Can we also do a check on the back-end when the exchange button is pressed that will also prevent the user and provide them with an error msg?
can exchange negative money and then exchange back even though don't have the funds. ex -100 and then 100
can exchange 0
can't swap
NaN popped up when incorrect input
currently, users can sell more currency then they have. We need to prevent this.
can we do a check on the front end as the form is populated that displays an error msg when a user enters a value in the form to sell greater then what they have? Can we also do a check on the back-end when the exchange button is pressed that will also prevent the user and provide them with an error msg?