more fixes for when there is no identity

This commit is contained in:
2023-12-13 19:46:40 -07:00
parent 5db3423301
commit 4a09b9b9b1
3 changed files with 9 additions and 3 deletions

View File

@@ -165,6 +165,7 @@
<router-link
:to="{ name: 'seed-backup' }"
v-if="activeDid"
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-2"
>
Backup Identifier Seed
@@ -328,7 +329,7 @@
:to="{ name: 'identity-switcher' }"
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-2"
>
Switch Identity / No Identity
Switch Identity
</router-link>
<button

View File

@@ -367,6 +367,10 @@ export default class ContactsView extends Vue {
}
async loadGives() {
if (!this.activeDid) {
return;
}
const handleResponse = (
resp: { status: number; data: { data: GiveServerRecord[] } },
descriptions: Record<string, string>,
@@ -405,7 +409,7 @@ export default class ContactsView extends Vue {
text:
"Got an error retrieving your " +
(useRecipient ? "given" : "received") +
" time from the server.",
" data from the server.",
},
-1,
);
@@ -462,7 +466,7 @@ export default class ContactsView extends Vue {
group: "alert",
type: "danger",
title: "Load Error",
text: "Got an error loading your givcs.",
text: "Got an error loading your gives.",
},
-1,
);