Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

User can delegate again during a transitionary period (~6s) after they have delegated All tracks. #566

@hamidra

Description

@hamidra

problem:
When a delegate All call is submitted, while the tx is in a block but not finalized the app allows the user to click on "Delegate All" or "Select" button to select and delegate again.
expected:
When a user has delegated All tracks they should not be able to delegate any more tracks.

repro steps:

1- Delegate All to a delegate,
2- When tx signed, app action buttons are disabled, tx notification snackbars shown and etc
3- When tx in blocks, action buttons are enabled
4- click on a Delegate All button to deelgate to another delegate (this is not expected)
5- delegate modal opens and you can send another delegate all (the tx will finally fail on chain since chain would not let multiple delegates per track.)

it takes 6-8 seconds for tx to finalize and the app is returned to correct state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions