File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,12 @@ import { providers } from "ethers"
17
17
import { init } from "@textile/eth-storage"
18
18
import { useWeb3 } from "../hooks/useWeb3"
19
19
import { Layout } from "../components/Layout"
20
+ import { useAccount } from "../hooks/useAccount"
20
21
21
- let ethAccount
22
- let myethAccount
23
22
let cid
24
23
let nft = { }
25
24
export default function MyAssets ( ) {
26
- // const [nft, setNft] = useState({} )
25
+ const myethAccount = useAccount ( )
27
26
const provider = useWeb3 ( )
28
27
const [ loadingState , setLoadingState ] = useState ( "not-loaded" )
29
28
const router = useRouter ( )
@@ -117,15 +116,6 @@ export default function MyAssets() {
117
116
await transaction . wait ( )
118
117
}
119
118
120
- if ( typeof window !== "undefined" ) {
121
- myethAccount = localStorage . getItem ( "ethAccount" )
122
- console . log ( "myethAccount" , myethAccount )
123
- }
124
-
125
- console . log ( router . query )
126
- console . log ( nft )
127
- console . log ( loadingState != "loaded" , ! nft )
128
-
129
119
if ( loadingState != "loaded" && ! ( "name" in nft ) ) {
130
120
loadNFT ( )
131
121
}
You can’t perform that action at this time.
0 commit comments