Skip to content

Commit 38d032a

Browse files
nazreenCopilot
andauthored
Update vite/src/hooks/useEvmOft.ts
Co-authored-by: Copilot <[email protected]>
1 parent c96da59 commit 38d032a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vite/src/hooks/useEvmOft.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ export function useEvmOft(overrideOftAddress?: `0x${string}` | string, rpcUrl?:
6565

6666
// Debug: log which RPC path is used for balances
6767
useEffect(() => {
68-
if (rpcUrl) {
69-
console.log('[OFT Balances] Using RPC:', rpcUrl)
70-
} else {
71-
console.log('[OFT Balances] Using wallet provider (wagmi)')
68+
if (process.env.NODE_ENV === 'development') {
69+
if (rpcUrl) {
70+
console.log('[OFT Balances] Using RPC:', rpcUrl)
71+
} else {
72+
console.log('[OFT Balances] Using wallet provider (wagmi)')
73+
}
7274
}
7375
}, [rpcUrl])
7476

0 commit comments

Comments
 (0)