Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
clean up console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jun 29, 2024
1 parent fa16b0f commit 8ab161b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
7 changes: 3 additions & 4 deletions app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export default function Index({ children }: RootLayoutProps) {

const connectBitcoin = async () => {
const w = window as any
console.log("connect bitcoin")
if ("xfi" in w && w.xfi?.bitcoin) {
w.xfi.bitcoin.changeNetwork("testnet")
const btc = (await w.xfi.bitcoin.getAccounts())[0]
Expand Down Expand Up @@ -195,7 +194,7 @@ export default function Index({ children }: RootLayoutProps) {
})
setBalances(b)
} catch (e) {
console.log(e)
console.error(e)
} finally {
setBalancesRefreshing(false)
setBalancesLoading(false)
Expand All @@ -212,7 +211,7 @@ export default function Index({ children }: RootLayoutProps) {
}
setFees(await client.getFees(500000))
} catch (e) {
console.log(e)
console.error(e)
}
}, 500),
[]
Expand All @@ -224,7 +223,7 @@ export default function Index({ children }: RootLayoutProps) {
try {
setPools(await client.getPools())
} catch (e) {
console.log(e)
console.error(e)
} finally {
setPoolsLoading(false)
}
Expand Down
1 change: 0 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
xdefiWallet,
} from "@rainbow-me/rainbowkit/wallets"

import { cn } from "@/lib/utils"
import Index from "@/app/index"

import { ZetaChainProvider } from "../hooks/useZetaChainClient"
Expand Down
3 changes: 1 addition & 2 deletions app/nft/fetchNFTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const useFetchNFTs = () => {
const { address } = useAccount()

const fetchNFTs = async () => {
console.log("Fetching NFTs...")
setAssetsReloading(true)
try {
let ownedNFTs: any = []
Expand Down Expand Up @@ -96,7 +95,7 @@ export const useFetchNFTs = () => {
assets.sort((a: any, b: any) => parseInt(b.id) - parseInt(a.id))
setAssets(assets)
} catch (e) {
console.log(e)
console.error(e)
} finally {
setAssetsReloading(false)
}
Expand Down
8 changes: 1 addition & 7 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

import { useContext, useEffect, useState } from "react"
import Link from "next/link"
import {
ArrowBigUp,
ChevronDown,
ChevronUp,
MessageCircle,
RefreshCw,
} from "lucide-react"
import { ArrowBigUp, ChevronDown, ChevronUp, RefreshCw } from "lucide-react"
import { formatUnits } from "viem"
import { useAccount } from "wagmi"

Expand Down

0 comments on commit 8ab161b

Please sign in to comment.