Rename variable
This commit is contained in:
parent
75df51b780
commit
6bc6080e68
@ -182,7 +182,7 @@ const AddNetwork = () => {
|
||||
setNetworksData(retrievedNetworksData);
|
||||
|
||||
// Get number of accounts in first network
|
||||
const currentNumberOfAccounts = await getNextAccountId(
|
||||
const nextAccountId = await getNextAccountId(
|
||||
`${retrievedNetworksData[0].namespace}:${retrievedNetworksData[0].chainId}`,
|
||||
);
|
||||
|
||||
@ -208,7 +208,7 @@ const AddNetwork = () => {
|
||||
),
|
||||
]);
|
||||
|
||||
await addAccountsForNetwork(selectedNetwork!, currentNumberOfAccounts - 1);
|
||||
await addAccountsForNetwork(selectedNetwork!, nextAccountId - 1);
|
||||
|
||||
navigation.navigate("Home");
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user