harmony-one/staking-dashboard

Returned in status is incorrect for unelected validators

yelllowsin opened this issue · 1 comments

When undelegating from an unelected validator, the status of Returned in shows aways as "End of current epoch".
It should show correctly the number of epochs left no matter the validators is elected or not.

image

On the example below it should show 6 epochs. Check via hey cli:

./hmy --node="https://api.s0.t.hmny.io" blockchain delegation by-delegator one1dr7hrpx8dentyftwxts37pkkrh569haferf9qy

image

@vpcodebase thanks for fixing it. Just tested here and it looks to be ok now.
Closing this issue.