add Confirm Gift screen for simpler confirmation

This commit is contained in:
2024-06-20 20:52:26 -06:00
parent 79d93994c2
commit 230773a917
11 changed files with 992 additions and 34 deletions

View File

@@ -112,10 +112,15 @@ export default class IdentitySwitcherView extends Vue {
await accountsDB.open();
const accounts = await accountsDB.accounts.toArray();
for (let n = 0; n < accounts.length; n++) {
const did = JSON.parse(accounts[n].identity)["did"];
this.otherIdentities.push({ did: did });
if (did && this.activeDid === did) {
this.activeDidInIdentities = true;
try {
const did = JSON.parse(accounts[n].identity)["did"];
this.otherIdentities.push({ did: did });
if (did && this.activeDid === did) {
this.activeDidInIdentities = true;
}
} catch (err) {
console.error("Error parsing identity:", err);
continue;
}
}
} catch (err) {