File tree 1 file changed +8
-3
lines changed 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ function normalizeFetcher(fetcher: FetcherProp): Fetcher<unknown> {
55
55
56
56
// ethereum
57
57
if ( isFetcherDeclarationEthereum ( fetcher ) ) {
58
- return ethereumFetcher ( fetcher [ 1 ] ) as Fetcher < EthereumFetcherConfigDeclaration >
58
+ return ethereumFetcher ( fetcher [ 1 ] ) as Fetcher <
59
+ EthereumFetcherConfigDeclaration
60
+ >
59
61
}
60
62
61
63
// custom fetcher (or wrong value)
@@ -138,9 +140,12 @@ function useNft(contractAddress: Address, tokenId: string): NftResult {
138
140
)
139
141
140
142
return useMemo ( ( ) => {
141
- const { error, data, revalidate } = result
143
+ const { error, data, mutate } = result
142
144
143
- const reload = ( ) => revalidate ( )
145
+ const reload = ( ) =>
146
+ mutate ( )
147
+ . then ( ( ) => true )
148
+ . catch ( ( ) => false )
144
149
145
150
if ( error === undefined && data === undefined ) {
146
151
return {
You can’t perform that action at this time.
0 commit comments