Skip to content

Commit 78c8b37

Browse files
committed
Fix build error
1 parent 3dbf1be commit 78c8b37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

demo/pages/hooks/useRequests.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ import { useRequests } from '@reservoir0x/relay-kit-hooks'
55
import { useState } from 'react'
66

77
const UseRequests: NextPage = () => {
8-
const [originChainId, setOriginChainId] = useState<string | undefined>(
8+
const [originChainId, setOriginChainId] = useState<number | undefined>(
99
undefined
1010
)
1111
const [destinationChainId, setDestinationChainId] = useState<
12-
string | undefined
12+
number | undefined
1313
>(undefined)
1414
const [limit, setLimit] = useState<number>(20)
1515
const [user, setUser] = useState<string | undefined>()
1616
const { data: response } = useRequests(
1717
{
1818
originChainId,
1919
destinationChainId,
20-
limit: `${limit}`,
20+
limit,
2121
user
2222
},
2323
MAINNET_RELAY_API
@@ -53,7 +53,7 @@ const UseRequests: NextPage = () => {
5353
type="number"
5454
placeholder="Which origin chain?"
5555
value={originChainId}
56-
onChange={(e) => setOriginChainId(e.target.value)}
56+
onChange={(e) => setOriginChainId(+e.target.value)}
5757
/>
5858
</div>
5959
<div>
@@ -62,7 +62,7 @@ const UseRequests: NextPage = () => {
6262
type="number"
6363
placeholder="Which destination chain?"
6464
value={destinationChainId}
65-
onChange={(e) => setDestinationChainId(e.target.value)}
65+
onChange={(e) => setDestinationChainId(+e.target.value)}
6666
/>
6767
</div>
6868
<div>

0 commit comments

Comments
 (0)