forked from jsnbuchanan/crowd-funder-for-time-pwa
Fix encrypt-decrypt issue.
This commit is contained in:
@@ -225,7 +225,7 @@ export default class AccountViewView extends Vue {
|
||||
);
|
||||
try {
|
||||
await db.open();
|
||||
const num_accounts = await db._allTables.accounts.count();
|
||||
const num_accounts = await db.accounts.count();
|
||||
if (num_accounts === 0) {
|
||||
console.log("...");
|
||||
await db._allTables.accounts.add({
|
||||
@@ -235,7 +235,7 @@ export default class AccountViewView extends Vue {
|
||||
dateCreated: new Date().getTime(),
|
||||
});
|
||||
}
|
||||
const accounts = await db._allTables.accounts.toArray();
|
||||
const accounts = await db.accounts.toArray();
|
||||
console.log(accounts[0]);
|
||||
const identity = JSON.parse(accounts[0].identity);
|
||||
|
||||
@@ -244,8 +244,9 @@ export default class AccountViewView extends Vue {
|
||||
|
||||
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... created new ID..."}))
|
||||
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... stored new ID..."}))
|
||||
} catch {
|
||||
} catch (err) {
|
||||
console.log("Error!");
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user