From 97569697f6aa0d92fa5279ce1e923a873db21305 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 19 Jul 2023 18:22:35 +0800 Subject: [PATCH] * show DID if no name * hide no contacts when there are no contacts * replace contact property with giver (? can you have another contact give you something ?) --- src/views/HomeView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index d7bb77f..61a5365 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -22,7 +22,7 @@

- {{ contact.name || "(no name)" }} + {{ contact.name || contact.did }}

@@ -39,6 +39,7 @@
(No contacts to show.)
@@ -286,7 +287,7 @@ export default class HomeView extends Vue { handleDialogResult(result) { if (result.action === "confirm") { return new Promise((resolve) => { - this.recordGive(result.contact?.did, result.description, result.hours); + this.recordGive(result.giver?.did, result.description, result.hours); resolve(); }); } else {