FreeosDAO / airclaim_frontend

Freeos AirClaim frontend
2 stars 2 forks source link

Unstake button was enabled when Staked amount is 0 XPR #9

Closed judytan21 closed 3 years ago

judytan21 commented 3 years ago

This issue was found during Alpha testing for NZ - v0.6.4n freeosn In iteration 1, the staking requirement for user deliadally type 'd' was 0 XPR. Was able to Claim without staking. On the Stake Requirements page, it was correctly showing as 0 XPR. However, the Unstake button was enabled. Expecting Unstake button to be enabled only when the staked amount is greater than 0 XPR. On selecting Unstake, the backend catches it and an assertion error "user does not have a staked amount" was correctly displayed.

judytan21 commented 3 years ago

Screenshot of Stake requirements page Freeos App 7-6-2021 2-13-21 PM

stuartmcphersonflipmind commented 3 years ago

Ok there was a Bug with and you should of been able to get to this page, because the Stake page link should of been hidden Ive fixed this also hidden the Unstaking section just incase a user still finds the Stake page

judytan21 commented 3 years ago

11/8/21 This is no longer applicable as the implementation has changed. The stake/unstake function will be displayed where applicable in the menu for user to stake/unstake. JK/Tom managed to get someone with account type 'v' in beta testing. Closing issue.