Skip to content

Commit

Permalink
feat: show lastname in my kiva profile
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Nov 11, 2024
1 parent 5ddb090 commit 0d3171b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MyKiva/MyKivaProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
1 change: 1 addition & 0 deletions src/graphql/query/myKiva.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ query myKivaQuery {
userAccount {
id
firstName
lastName
balance
}
trustee {
Expand Down

0 comments on commit 0d3171b

Please sign in to comment.