@@ -55,19 +55,21 @@ function _useWallet(initialWallet = Nothing(), initialMnemonic = Nothing()) {
55 const { web3 } = useNetwork();
55 const { web3 } = useNetwork();
57 useEffect(() => {
57 useEffect(() => {
58− if (!Just.hasInstance(wallet) || !Just.hasInstance(web3)) {
59+ if (!Just.hasInstance(wallet) || !Just.hasInstance(web3)) {
61− const _wallet = wallet.value;
62+ const _wallet = wallet.value;
62− const _web3 = web3.value;
63+ const _web3 = web3.value;
63− const token = getAuthToken({
64+ const token = await getAuthToken({
64− wallet: _wallet,
65+ wallet: _wallet,
65− walletType,
66+ walletType,
66− walletHdPath,
67+ walletHdPath,
67− web3: _web3,
68+ web3: _web3,
70− setAuthToken(token);
71+ setAuthToken(token);
71 }, [wallet, walletType, walletHdPath, web3]);
73 }, [wallet, walletType, walletHdPath, web3]);
73 const setWalletType = useCallback(
75 const setWalletType = useCallback(