Skip to content

Commit 10efe92

Browse files
committedAug 8, 2024··
refactor(web): remove-unused-import
1 parent ddd06d1 commit 10efe92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎web/src/context/AtlasProvider.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { useAccount, useChainId, useSignMessage } from "wagmi";
77
import { useSessionStorage } from "hooks/useSessionStorage";
88
import { createMessage, getNonce, loginUser } from "utils/atlas";
99

10-
import { isUndefined } from "src/utils";
11-
1210
interface IAtlasProvider {
1311
isVerified: boolean;
1412
isSigningIn: boolean;
@@ -81,10 +79,10 @@ const AtlasProvider: React.FC<{ children?: React.ReactNode }> = ({ children }) =
8179
if (!address || !chainId) return;
8280
setIsSigningIn(true);
8381
const nonce = await getNonce(atlasGqlClient, address);
82+
8483
const message = createMessage(address, nonce, chainId);
8584
const signature = await signMessageAsync({ message });
8685

87-
if (!signature) return;
8886
const token = await loginUser(atlasGqlClient, { message, signature });
8987

9088
setAuthToken(token);

0 commit comments

Comments
 (0)
Please sign in to comment.