Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Mar 25, 2024
1 parent d1a6c49 commit a7c50b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
8 changes: 6 additions & 2 deletions app/(public)/connect/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { toast } from 'react-toastify'
import { makeSignDoc } from '@cosmjs/amino'
import { GET_USER_DATA, linkWallet } from '@/services'
import { useApolloClient, useQuery } from '@apollo/client'
import { useRouter } from 'next/navigation'
import { redirect, useRouter } from 'next/navigation'
import FilledButton from '@/components/button/filled'
import c98 from '@/assets/c98.svg'
import keplr from '@/assets/keplr.svg'
Expand All @@ -24,7 +24,11 @@ export default function Connect() {
const { connect, address, chain, closeView, wallet, disconnect } = useChain(config.COSMOSKIT_CHAINKEY)
const { status: globalStatus, mainWallet } = useWallet()
const { refetch } = useQuery(GET_USER_DATA)

useEffect(() => {
if (account?.wallet_address && address == account.wallet_address) {
redirect('/')
}
}, [account?.wallet_address, address])
const connectXHandler = () => {
window.location.href = `${config.REST_API_ENDPOINT}/auth/twitter`
}
Expand Down
18 changes: 0 additions & 18 deletions app/(public)/layout.tsx

This file was deleted.

0 comments on commit a7c50b0

Please sign in to comment.