Related to T2615. If the user inputs an invalid XEC address in the DestinationAddressMulti input, the error message should not include the amount param if it is undefined.
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABC704ac34685c8: [Cashtab] Hide amount in error msg if it is undefined DestinationAddressMulti
cd web/cashtab && npm start
navigate to Send screen
Under the advanced tab, toggle the Multiple Recipients toggle
Input an invalid XEC address
observe that the error message does not read 'undefined' following the comma if the value is undefined
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/cashtab/src/components/Send/Send.js | ||
---|---|---|
574 ↗ | (On Diff #34719) | We also don't want to display the comma after ${addressString} in this case, e.g. Move the comma into the conditionally rendered area |
web/cashtab/src/components/Send/Send.js | ||
---|---|---|
575 ↗ | (On Diff #34729) | Use `` instead of string addition, i.e. valueString !== undefined ? `, ${valueString}` : '' |