Skip to content

Commit 143d78a

Browse files
authored
fix: Crash when logging sol wallets (#12213)
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on modifying the `wallets.ts` file to improve the handling of Solana wallet adapters and includes a change to debug logging. ### Detailed summary - Removed the debug `console.log` statement for `solanaWalletAdapters`. - The function `isSolanaWalletInstalled` checks if `solanaWalletAdapters` is defined and has a length greater than zero before proceeding. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent dd15a4f commit 143d78a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/ui-wallets/src/config/wallets.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const getWalletsConfig = ({
4444
solanaWalletAdapters: SolanaWalletAdapter[]
4545
}): WalletConfigV3[] => {
4646
const qrCode = createEvmQrCode ? createEvmQrCode() : undefined
47-
console.log('debug sol wallets', solanaWalletAdapters)
4847
const isSolanaWalletInstalled = (walletName: WalletName) => {
4948
if (!solanaWalletAdapters || solanaWalletAdapters.length === 0) return false
5049
return solanaWalletAdapters.some(

0 commit comments

Comments
 (0)