Skip to content

Commit e716fb0

Browse files
committed
Fix return of incomplete unlock objects from web
1 parent 778c064 commit e716fb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/web.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ async function getLensByHash(uuid) {
7979

8080
async function getUnlockByHash(uuid) {
8181
// alias function
82-
return await getLensByHash(uuid);
82+
let unlock = await getLensByHash(uuid);
83+
if (unlock && unlock.lens_id && unlock.lens_url) {
84+
return unlock;
85+
}
86+
return null;
8387
}
8488

8589
async function mirrorSearchResults(webResults) {

0 commit comments

Comments
 (0)