Few cleanups to code

This commit is contained in:
Valtteri Karesto
2021-12-13 23:02:03 +02:00
parent 380e196db2
commit 35bc89cf99
3 changed files with 16 additions and 17 deletions

View File

@@ -56,4 +56,14 @@ export const addFaucetAccount = async (showToast: boolean = false) => {
isLoading: false,
});
}
};
};
// fetch initial faucets
(async function fetchFaucets() {
if (state.accounts.length < 2) {
await addFaucetAccount();
setTimeout(() => {
addFaucetAccount();
}, 10000);
}
})();