HomePhabricator

[Cashtab] Prevent double notifications on send xec txs while preserving testing…

Description

[Cashtab] Prevent double notifications on send xec txs while preserving testing of component tx building

Summary:
Cashtab has better and standardized tx notifications that come from the websocket subscription. However, it is still important to test correct rawtxs are built in the component screens. We are not able to test the websocket tx notifications without regtest, but we can test the tx notifications generated by the components.

So, we conditionally render these notifications only in the test environment.

Test Plan: npm test, npm start and send some eCash, we do not see double notifications on send

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Thu, Jan 16, 13:43
bytesofmanPushed on Thu, Jan 16, 20:20
Reviewer
Restricted Project
Differential Revision
D17544: [Cashtab] Prevent double notifications on send xec txs while preserving testing of component tx building
Parents
rABC2c1219ed56c6: [electrum] Fix the homescreen change with all devices
Branches
Unknown
Tags
Unknown