Skip to content

Commit 3f23a7e

Browse files
committed
add logs
1 parent a610313 commit 3f23a7e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/AuthLogin/AuthModal.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ const AuthModal = ({
148148
const { DASHBOARD_URL, VERCEL_ENV } = siteConfig?.customFields || {};
149149
const {
150150
sdk,
151+
metaMaskAccount,
152+
metaMaskAccountEns,
151153
setNeedsMfa,
152154
setWalletLinked,
153155
setWalletAuthUrl,
@@ -162,6 +164,11 @@ const AuthModal = ({
162164

163165
const login = async () => {
164166
setStep(AUTH_LOGIN_STEP.CONNECTING);
167+
168+
169+
console.log('metaMaskAccount', metaMaskAccount);
170+
console.log('metaMaskAccountEns', metaMaskAccountEns);
171+
165172
try {
166173
if (!sdk.isExtensionActive()) {
167174
setOpen(false);
@@ -170,6 +177,8 @@ const AuthModal = ({
170177
// Try to connect wallet first
171178
const accounts = await sdk.connect();
172179

180+
console.log('accounts', accounts);
181+
173182
if (accounts && accounts.length > 0) {
174183
setMetaMaskAccount(accounts[0]);
175184
fetchLineaEns(accounts[0]);
@@ -183,6 +192,9 @@ const AuthModal = ({
183192
VERCEL_ENV as string,
184193
);
185194

195+
console.log('accessToken', accessToken);
196+
console.log('userProfile', userProfile);
197+
186198
const loginResponse = await (
187199
await fetch(
188200
`${DASHBOARD_URL}/api/wallet/login`,

0 commit comments

Comments
 (0)