novasamatech / nova-spektr

Nova Spektr — All-in-one Polkadot desktop wallet supporting multisigs, staking, light clients, and more
https://novaspektr.io
Apache License 2.0
40 stars 16 forks source link

Multisig. Create multisig flow - "Not enough tokens" may trigger even if its wrong for a second, when open page #2685

Open stepanLav opened 3 days ago

stepanLav commented 3 days ago

Description

When user try to create multisig, if isEnoughBalance get any of value (!signer || !fee || !multisigDeposit || !chain) undefined when open a form - it will show "Not enough tokens" for a second

Example:

Screenshot 2024-11-19 at 16 07 20 Screenshot 2024-11-19 at 16 07 26

Steps to Reproduce

  1. Go to multisig creation flow
  2. Select Westend
  3. Fill all fields
  4. Proceed on confirmation page

Expected Behavior

Error - "Not enough tokens" triggers only if user actually has no assets

Actual Behavior

May be shown for a second

Environment

https://github.com/novasamatech/nova-spektr/commit/c66c6920ba3846ec1f433b7eab5b1dfe55014a4a