Page MenuHomePhabricator

[Cashtab] Better conditions for disabling amount in SendXec
ClosedPublic

Authored by bytesofman on Jan 17 2024, 11:57.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC1121eb40f1bf: [Cashtab] Better conditions for disabling amount in SendXec
Summary

txInfoFromUrl is either false or an object. So, we only wan to disable amount if it is both NOT false and has a value key not === 'null'

Test Plan

npm start
Navigate to SendXec screen
amount input is not disabled

Navigate to http://localhost:3000/#/send?address=ecash:qzgyg3llme32kpru03ff7dq7lz8087ma6glfxngvp2&value=1012.71
amount input is disabled

Diff Detail

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