File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ import { useRequests } from '@reservoir0x/relay-kit-hooks'
55import { useState } from 'react'
66
77const 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 >
You can’t perform that action at this time.
0 commit comments