HomePhabricator

[Cashtab] Disable claim button while we wait for server response

Description

[Cashtab] Disable claim button while we wait for server response

Summary:
Depends on D17559

After the user clicks to claim a reward, disable the button until we hear back from the server. Can take a few seconds to get the claim and we do not want multiple claims being made before we get a response.

Test Plan:
npm test, check test site at https://cashtab-local-dev.netlify.app/

I tried to catch this behavior in the tests but was not able to do it. The logic is pretty simple: disable the button in handleClaim, enable it if we get a response or an error.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Sat, Jan 18, 01:46
bytesofmanPushed on Sat, Jan 18, 21:08
Reviewer
Restricted Project
Differential Revision
D17560: [Cashtab] Disable claim button while we wait for server response
Parents
rABC3da5fb76c470: [Cashtab] Rewards screen to typescript
Branches
Unknown
Tags
Unknown