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.
Differential D17560
[Cashtab] Disable claim button while we wait for server response bytesofman on Sat, Jan 18, 01:48. Authored by Tags None Subscribers None
Details
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. 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
|