Browse Source

Added identity check

world-fix
Matthew Raymer 1 year ago
parent
commit
b139957e3e
  1. 3
      src/components/World/components/objects/landmarks.js

3
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";

Loading…
Cancel
Save