Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisPett committed Dec 25, 2023
1 parent cc990db commit 2856bad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/add-property/AddPropertyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {useRouter} from "next/navigation";
import Textfield from "@/lib/Textfield";
import TextfieldMulti from "@/lib/TextfieldMulti";
import Dropzone from "react-dropzone";
import {signIn, useSession} from "next-auth/react";
import {getSession, signIn, useSession} from "next-auth/react";
import MintModal from "@/components/add-property/components/MintModal";
import {CreatePropertyReqBody} from "@/components/add-property/AddPropertyPageDTO";
import {fetchCreateProperty} from "@/components/add-property/AddPropertyPageAPI";
Expand All @@ -19,6 +19,7 @@ const NEXT_PUBLIC_ABI = process.env.NEXT_PUBLIC_ABI

const AddPropertyPage = () => {
const {data: session} = useSession();

const router = useRouter();
const {open} = useWeb3Modal()
const {address, chainId, isConnected} = useWeb3ModalAccount()
Expand All @@ -44,10 +45,11 @@ const AddPropertyPage = () => {
increaseValue(20).then(res => {
})
}
console.log(session?.access_token)
// console.log(session?.access_token)
const increaseValue = async (amount: number) => {
if (!isConnected) throw Error("User disconnected")

const session = await getSession()
console.log(session)
if (walletProvider && session) {
const ethersProvider = new ethers.BrowserProvider(walletProvider)
const signer = await ethersProvider.getSigner()
Expand Down

0 comments on commit 2856bad

Please sign in to comment.