citycoins / ui

Basic UI components for interacting with the CityCoin contract. Requires Stacks Wallet for Web.
https://minecitycoins.com
GNU General Public License v3.0
28 stars 13 forks source link

🐞[BUG] Claim stacking reward state overwritten #151

Open whoabuddy opened 2 years ago

whoabuddy commented 2 years ago

Describe the bug

The successful tx dialog is reset in the claim stacking reward component when searching for a new reward cycle. It should persist.

To Reproduce

Steps to reproduce the behavior:

  1. Search for a cycle with a valid claim, claim button is shown
  2. Submit the claim tx, claim button updates to tx info and link
  3. Search for another cycle, resets state to claim button

Expected behavior

The data would persist, and wouldn't mislead someone into submitting twice.

Screenshots

image