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
Branch
token-decimal-step
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14870
Build 29694: Build Diffcashtab-tests
Build 29693: arc lint + arc unit