MarkdaleMGMT / frontend-app

Frontend App build using react js
2 stars 50 forks source link

FX form limits #163

Closed RiskingTime closed 4 years ago

RiskingTime commented 4 years ago

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?

RiskingTime commented 4 years ago

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