HomePhabricator

[Cashtab] Better conditions for disabling amount in SendXec

Description

[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

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D15189

Details

Provenance
bytesofmanAuthored on Jan 17 2024, 11:54
bytesofmanPushed on Jan 17 2024, 12:04
Reviewer
Restricted Project
Differential Revision
D15189: [Cashtab] Better conditions for disabling amount in SendXec
Parents
rABCaca2da5b3d2c: [CI] Restore cashtab preview
Branches
Unknown
Tags
Unknown