lisk-mobile icon indicating copy to clipboard operation
lisk-mobile copied to clipboard

Calculate by API call the current blockchain application

Open clemente-xyz opened this issue 2 years ago • 0 comments

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.

clemente-xyz avatar Oct 24 '22 12:10 clemente-xyz