Skip to content

Commit 49d0cd6

Browse files
committed
Small code fix
1 parent 4e5921c commit 49d0cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function relayRequest(path, method = 'GET', body = null) {
8989

9090
async function getUnlockFromRelay(lensId) {
9191
const unlock = await relayRequest(`/vc/v1/explorer/unlock?uid=${lensId}`);
92-
if (unlock && unlock.lens_id && unlock.lens_url) {
92+
if (typeof unlock === 'object' && unlock.lens_id && unlock.lens_url) {
9393
return unlock;
9494
}
9595
return null;

0 commit comments

Comments
 (0)