Page MenuHomePhabricator

[Cashtab] Match number step input to token decimals
ClosedPublic

Authored by bytesofman on Jan 20 2021, 12:02.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCc02c84dd0a3b: [Cashtab] Match number step input to token decimals
Summary

Form validation already matches token decimals. However, default step for number inputs if not specified is 1. This means a user will see a form error if they try to send a decimal fraction of a token, even though the send will be successful. This diff patches the bug by adjusting step to match token decimal places.

Test Plan

npm start, go to send a token, observe that scrolling over the 'Amount' field increments the value by decimal places of SLPA token to be sent

Diff Detail

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