@@ -265,14 +265,7 @@ const Navbar = ({ onMenuToggle, className, isMobileMenuOpen = false, setIsMobile
265265 const chainId = useChainId ( ) ;
266266 const { chains, switchChain, error : switchChainError } = useSwitchChain ( ) ;
267267
268- // Debug logging
269- console . log ( "=== WALLET DEBUG INFO ===" ) ;
270- console . log ( "isConnected:" , isConnected ) ;
271- console . log ( "address:" , address ) ;
272- console . log ( "currentChainId:" , chainId ) ;
273- console . log ( "chains array:" , chains ) ;
274- console . log ( "chains length:" , chains ?. length ) ;
275- console . log ( "avalancheFujiChain state:" , avalancheFujiChain ) ;
268+
276269
277270 // Find Avalanche Fuji chain dynamically from available chains
278271 useEffect ( ( ) => {
@@ -287,21 +280,15 @@ const Navbar = ({ onMenuToggle, className, isMobileMenuOpen = false, setIsMobile
287280 const fujiById = chains . find ( chain => chain . id === 43113 ) ;
288281 const fujiBySymbol = chains . find ( chain => chain . nativeCurrency ?. symbol === 'AVAX' ) ;
289282
290- console . log ( "Search results:" ) ;
291- console . log ( "- By name 'Avalanche Fuji':" , fujiByName ) ;
292- console . log ( "- By ID 43113:" , fujiById ) ;
293- console . log ( "- By symbol 'AVAX':" , fujiBySymbol ) ;
283+
294284
295285 const fujiChain = fujiByName || fujiById || fujiBySymbol ;
296286
297287 if ( fujiChain ) {
298288 console . log ( '✅ Found Avalanche Fuji chain:' , fujiChain ) ;
299289 setAvalancheFujiChain ( fujiChain ) ;
300290 } else {
301- console . log ( '❌ Avalanche Fuji chain not found in available chains' ) ;
302- console . log ( 'Available chain names:' , chains . map ( c => c . name ) ) ;
303- console . log ( 'Available chain IDs:' , chains . map ( c => c . id ) ) ;
304- console . log ( 'Available chain symbols:' , chains . map ( c => c . nativeCurrency ?. symbol ) ) ;
291+
305292 }
306293 } else {
307294 console . log ( '❌ Conditions not met for chain detection' ) ;
@@ -314,13 +301,6 @@ const Navbar = ({ onMenuToggle, className, isMobileMenuOpen = false, setIsMobile
314301 } ) ;
315302
316303 // Debug balance fetching
317- console . log ( "=== BALANCE DEBUG INFO ===" ) ;
318- console . log ( "Balance fetch params:" , {
319- address,
320- chainId : avalancheFujiChain ?. id ,
321- avalancheFujiChainExists : ! ! avalancheFujiChain
322- } ) ;
323- console . log ( "Balance result:" , { data, isLoading, balanceError } ) ;
324304
325305 // Check if currently connected to Avalanche Fuji
326306 const isOnAvalancheFuji = avalancheFujiChain && chainId === avalancheFujiChain . id ;
@@ -435,7 +415,7 @@ const Navbar = ({ onMenuToggle, className, isMobileMenuOpen = false, setIsMobile
435415 fixed left-0 right-0 rounded-6xl border border-gray-200/20 drop-shadow-lg dark:border-gray-800/20 h-16 z-50 transition-all duration-500 ease-out
436416 ${ isScrolled
437417 ? 'bg-white/80 dark:bg-gray-900/80 backdrop-blur-xl shadow-lg shadow-black/5 border-b border-gray-200/20 dark:border-gray-800/20'
438- : 'bg-white/60 dark:bg-gray-900/60 backdrop-blur-lg border-b border-transparent'
418+ : 'bg-white/60 dark:bg-gray-900/80 backdrop-blur-lg border-b border-transparent'
439419 }
440420 ` } >
441421 { /* Animated gradient background */ }
0 commit comments