Skip to content

Commit 39a122c

Browse files
committed
simplify
1 parent b2623b4 commit 39a122c

File tree

1 file changed

+4
-8
lines changed
  • packages/thirdweb/src/wallets/manager

1 file changed

+4
-8
lines changed

packages/thirdweb/src/wallets/manager/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,9 @@ export async function getStoredActiveWalletId(
369369
if (value) {
370370
return value as WalletId;
371371
}
372+
} catch {}
372373

373-
return null;
374-
} catch {
375-
return null;
376-
}
374+
return null;
377375
}
378376

379377
/**
@@ -387,9 +385,7 @@ export async function getLastConnectedChain(
387385
if (value) {
388386
return JSON.parse(value) as Chain;
389387
}
388+
} catch {}
390389

391-
return null;
392-
} catch {
393-
return null;
394-
}
390+
return null;
395391
}

0 commit comments

Comments
 (0)