update lighthouse call in useLighthouse
This commit is contained in:
parent
4cd6dc01ef
commit
b2386cc400
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default function useLighthouse(
|
||||||
let isSubscribed = true;
|
let isSubscribed = true;
|
||||||
lighthouse
|
lighthouse
|
||||||
.search(throttledQuery)
|
.search(throttledQuery)
|
||||||
.then((results) => {
|
.then(({ body: results }) => {
|
||||||
if (isSubscribed) {
|
if (isSubscribed) {
|
||||||
setResults(
|
setResults(
|
||||||
results.map((result) => `lbry://${result.name}#${result.claimId}`).filter((uri) => isURIValid(uri))
|
results.map((result) => `lbry://${result.name}#${result.claimId}`).filter((uri) => isURIValid(uri))
|
||||||
|
|
Loading…
Reference in a new issue