Page MenuHomePhabricator

[Cashtab] Prevent creation of unacceptable agora offers
ClosedPublic

Authored by bytesofman on Thu, Jan 2, 15:14.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC4bb8240bd8d5: [Cashtab] Prevent creation of unacceptable agora offers
Summary

Bug fix. the UI was not resetting the max on the slider as expected, nor properly validating for unacceptable offer creation.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Update useEffect to validate min qty when total qty changes, remove useEffect that changed min qty when total qty changed

remove debug log, confirm button disabled on error event

bytesofman published this revision for review.Thu, Jan 2, 17:30
bytesofman added inline comments.
cashtab/src/components/Etokens/Token/index.tsx
665 ↗(On Diff #51928)

imo this was the wrong approach. we do not want to "auto change" Something that the user had set. Also this was only working for typed adjustments.

This revision is now accepted and ready to land.Thu, Jan 2, 17:44