Skip to content

Commit

Permalink
fix: remove auth check for sol
Browse files Browse the repository at this point in the history
  • Loading branch information
systemis committed Jul 13, 2023
1 parent 31a8bfa commit 59df4c6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pages/[chainId]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from "@/styles/Home.module.css";
import { useCallback, useEffect } from "react";
import { useCallback } from "react";
import type { GetServerSideProps, InferGetServerSidePropsType } from "next";
import { useWalletKit } from "@gokiprotocol/walletkit";
import { Button } from "@hamsterbox/ui-kit";
Expand All @@ -9,7 +9,6 @@ import { DashboardPageProvider } from "@/src/hooks/pages/dashboard";
import { LayoutSection } from "@/src/components/layout-section";
import { statisticService } from "@/src/services/statistic.service";
import { StatisticEntity } from "@/src/entities/statistic.entity";
import { useWallet } from "@/src/hooks/useWallet";
import { ConnectButton } from "@rainbow-me/rainbowkit";
import { useAppWallet } from "@/src/hooks/useAppWallet";
import { usePlatformConfig } from "@/src/hooks/usePlatformConfig";
Expand All @@ -26,19 +25,13 @@ const Layout = (props: LayoutProps) => {
/**
* @dev Wallet hook injected.
*/
const wallet = useWallet();
// const wallet = useWallet();
const { walletAddress } = useAppWallet();
const { chainId, pushRouterWithChainId } = usePlatformConfig();
const { connect: connectWallet } = useWalletKit();
const { connect: connectAptos } = useAptosWallet();
const { analyzeDecimals } = useWhiteList();

useEffect(() => {
if (wallet.solanaWallet?.publicKey?.toString()) {
pushRouterWithChainId("/my-pockets");
}
}, [wallet]);

const handleCreatePocket = useCallback(
(openModalEvm: () => void) => {
if (!walletAddress) {
Expand Down

0 comments on commit 59df4c6

Please sign in to comment.