From 0d3171bbf264167e9484e9177d2ffe2965c56ed9 Mon Sep 17 00:00:00 2001 From: Roger Gutierrez Date: Mon, 11 Nov 2024 17:26:58 -0600 Subject: [PATCH] feat: show lastname in my kiva profile --- src/components/MyKiva/MyKivaProfile.vue | 4 +++- src/graphql/query/myKiva.graphql | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/MyKiva/MyKivaProfile.vue b/src/components/MyKiva/MyKivaProfile.vue index 8cd0aefa8e..30e5584bf0 100644 --- a/src/components/MyKiva/MyKivaProfile.vue +++ b/src/components/MyKiva/MyKivaProfile.vue @@ -53,7 +53,9 @@ const props = defineProps({ const { lender, userInfo } = toRefs(props); const lenderName = computed(() => { - return userInfo?.value?.userAccount?.firstName ?? ''; + const firstName = userInfo?.value?.userAccount?.firstName ?? ''; + const lastName = userInfo?.value?.userAccount?.lastName ?? ''; + return `${firstName} ${lastName}`; }); const lenderImageUrl = computed(() => { diff --git a/src/graphql/query/myKiva.graphql b/src/graphql/query/myKiva.graphql index 0a5c738406..0a5ad30b6d 100644 --- a/src/graphql/query/myKiva.graphql +++ b/src/graphql/query/myKiva.graphql @@ -57,6 +57,7 @@ query myKivaQuery { userAccount { id firstName + lastName balance } trustee {