forked from jsnbuchanan/crowd-funder-for-time-pwa
prefer console.error messages for errors
This commit is contained in:
@@ -117,12 +117,10 @@ export default class ProjectsView extends Vue {
|
||||
projects: { handleId: string; name: string; description: string }[] = [];
|
||||
|
||||
onClickLoadProject(id: string) {
|
||||
console.log("projectId", id);
|
||||
localStorage.setItem("projectId", id);
|
||||
const route = {
|
||||
name: "project",
|
||||
};
|
||||
console.log(route);
|
||||
this.$router.push(route);
|
||||
}
|
||||
|
||||
@@ -151,7 +149,7 @@ export default class ProjectsView extends Vue {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
console.error("Got error loading projects: ", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +163,7 @@ export default class ProjectsView extends Vue {
|
||||
await accountsDB.open();
|
||||
const num_accounts = await accountsDB.accounts.count();
|
||||
if (num_accounts === 0) {
|
||||
console.log("Problem! Should have a profile!");
|
||||
console.error("Problem! Should have a profile!");
|
||||
} else {
|
||||
const accounts = await accountsDB.accounts.toArray();
|
||||
const account = R.find((acc) => acc.did === activeDid, accounts);
|
||||
@@ -179,7 +177,6 @@ export default class ProjectsView extends Vue {
|
||||
const route = {
|
||||
name: "new-edit-project",
|
||||
};
|
||||
console.log(route);
|
||||
this.$router.push(route);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user