lisk-mobile
lisk-mobile copied to clipboard
Calculate by API call the current blockchain application
Expected behavior
Setting up the current blockchain application the user is logged in should be dynamically and based on the current network status returned by Lisk Service.
Actual behavior
We are currently using a mock of default blockchain application to set the current application state when the app mounts. We need to remove this and fetch that data from the server.
Steps to reproduce
You can see on src/modules/Auth/AuthMethod/index.js
, line 37
, and on src/modules/BlockchainApplication/hooks/useBlockchainApplicationManagement.js
, line 63
, that we are calling:
setCurrentApplication(mockDefaultApplicationMeta);
Then, whenever Lisk Service changes something related to the default applications data, mobile app crashes since is not in sync with the real data.
Which version(s) does this affect? (Environment, OS, etc...)
All.