We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5921c commit 49d0cd6Copy full SHA for 49d0cd6
src/utils/helper.js
@@ -89,7 +89,7 @@ async function relayRequest(path, method = 'GET', body = null) {
89
90
async function getUnlockFromRelay(lensId) {
91
const unlock = await relayRequest(`/vc/v1/explorer/unlock?uid=${lensId}`);
92
- if (unlock && unlock.lens_id && unlock.lens_url) {
+ if (typeof unlock === 'object' && unlock.lens_id && unlock.lens_url) {
93
return unlock;
94
}
95
return null;
0 commit comments