Skip to content

Commit

Permalink
fix: guest account flow store name in userAccount instead of lender
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Oct 31, 2024
1 parent b488ff4 commit c1dac87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/MyKiva/MyKivaProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,20 @@ const props = defineProps({
type: Object,
default: () => ({}),
},
userInfo: {
type: Object,
default: () => ({}),
},
isLoading: {
type: Boolean,
default: false,
},
});
const { lender } = toRefs(props);
const { lender, userInfo } = toRefs(props);
const lenderName = computed(() => {
return lender?.value?.name ?? '';
return userInfo?.value?.userAccount?.firstName ?? '';
});
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 @@ -55,6 +55,7 @@ query myKivaQuery {
}
userAccount {
id
firstName
balance
}
trustee {
Expand Down
1 change: 1 addition & 0 deletions src/pages/Portfolio/MyKiva/MyKivaPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/>
<MyKivaProfile
:lender="lender"
:user-info="userInfo"
:is-loading="isLoading"
/>
<MyKivaContainer>
Expand Down

0 comments on commit c1dac87

Please sign in to comment.