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;
lighthouse
.search(throttledQuery)
.then((results) => {
.then(({ body: results }) => {
if (isSubscribed) {
setResults(
results.map((result) => `lbry://${result.name}#${result.claimId}`).filter((uri) => isURIValid(uri))