chore(deps): update auth-client to 0.1.7

This commit is contained in:
Ben Kremer
2022-09-07 11:26:32 +02:00
parent 7e52f20c5f
commit 18847f7f15
6 changed files with 24 additions and 18 deletions
+5 -2
View File
@@ -10,11 +10,14 @@ import {
useToast,
} from "@chakra-ui/react";
import AuthClient from "@walletconnect/auth-client";
import { version } from "@walletconnect/auth-client/package.json";
import type { NextPage } from "next";
import Link from "next/link";
import Qrcode from "qrcode";
import { Fragment, useCallback, useEffect, useRef, useState } from "react";
console.log(`AuthClient@${version}`);
const Home: NextPage = () => {
const [client, setClient] = useState<AuthClient | null>();
const [uri, setUri] = useState<string>("");
@@ -48,8 +51,8 @@ const Home: NextPage = () => {
icons: [],
},
})
.then((v) => {
setClient(v);
.then((authClient) => {
setClient(authClient);
})
.catch(console.log);
}, [setClient]);