diff --git a/src/components/World/components/objects/landmarks.js b/src/components/World/components/objects/landmarks.js index 3c6dbfafb..a46033763 100644 --- a/src/components/World/components/objects/landmarks.js +++ b/src/components/World/components/objects/landmarks.js @@ -23,6 +23,9 @@ export async function loadLandmarks(vue, world, scene, loop) { const accounts = await accountsDB.accounts.toArray(); const account = R.find((acc) => acc.did === activeDid, accounts); const identity = JSON.parse(account?.identity || "undefined"); + if (!identity) { + throw new Error("No identity found."); + } const token = await accessToken(identity); const url = apiServer + "/api/v2/report/claims?claimType=GiveAction";