Page MenuHomePhabricator

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

Authored by bytesofman on Sat, Jan 18, 01:48.

Details

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.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
rewards-ts
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32156
Build 63802: Build Diffcashtab-tests
Build 63801: arc lint + arc unit