chore: remove wallet code comments
This commit is contained in:
@@ -45,13 +45,6 @@ function waitForInjected(kind: WalletKind): Promise<boolean> {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* When the page is opened via a `?autoLogin=<wallet>` deeplink (typically from
|
||||
* inside TokenPocket / imToken in-app browsers), wait for the wallet to inject
|
||||
* `window.ethereum`, then complete wallet login without WalletConnect. imToken
|
||||
* may drop the query string while opening its in-app browser, so imToken browser
|
||||
* detection also starts the same direct-login path.
|
||||
*/
|
||||
export function AutoInjectedLogin() {
|
||||
const { completeLogin, status } = useWallet();
|
||||
|
||||
@@ -81,7 +74,6 @@ export function AutoInjectedLogin() {
|
||||
if (cancelled) return;
|
||||
completeLogin(res.token, res.wallet);
|
||||
} catch (err) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn("[wallet-autologin] failed", err);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user