LiskArchive / lisk-mobile

📱 Lisk graphical user interface for mobile
https://lisk.com
GNU General Public License v3.0
103 stars 31 forks source link

Send token screen should be unaccessible if native token of current application has no balance on account #2135

Closed clemente-xyz closed 1 year ago

clemente-xyz commented 1 year ago

Expected behavior

Send token screen should be unaccessible if native token of current application has no balance on account.

Actual behavior

When an account has no balance on the native token of the current selected application, the send token screen can be accessed by a request token link.

This breaks the send token form, since the token has no balance and is not identified as a "transferable token", blocking the user of continuing with the transaction.

simulator_screenshot_C7F6F48B-5F95-4E38-8F59-1A030C6803AB

Steps to reproduce

  1. Generate a request token link for a sidechain where the current account which will send the tokens has no balance on the native tokens of the current selected application. Here an example link: lisk://wallet?modal=send&recipient=lsk6hfpfvjzso58xqpwxeqeceme2xuemmuk5f887b&amount=0.1&recipientChain=01000001&token=0100000100000000&reference=
  2. Click on it to open Lisk wallet.
  3. Notice that the form breaks.

Which version(s) does this affect? (Environment, OS, etc...)

3.0.0