update lighthouse call in useLighthouse

This commit is contained in:
zeppi 2021-08-12 22:49:20 -04:00
parent 4cd6dc01ef
commit b2386cc400

View file

@ -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))