Skip to content

Commit

Permalink
fix: passing number of badges to optin module
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Nov 14, 2024
1 parent 7a1bc17 commit c7f0477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Thanks/MyKiva/OptInModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const props = defineProps({
type: Boolean,
default: false,
},
numberOfBadgesEarned: {
numberOfBadges: {
type: Number,
default: 0,
}
Expand Down Expand Up @@ -144,7 +144,7 @@ const updateOptIn = value => {
'click',
`${value ? 'accept' : 'reject'}-opt-in-request`,
props.isGuest ? 'guest' : 'signed-in',
props.numberOfBadgesEarned,
props.numberOfBadges,
);
if (value) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Thanks/MyKiva/ThanksBadges.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
v-if="!isGuest && !isOptedIn"
:loans="loans"
:is-guest="isGuest"
:number-of-badges="numberOfBadges"
/>
<!-- Badges module -->
<div class="content-box tw-flex tw-flex-col tw-items-center tw-gap-1.5 tw-text-center">
Expand Down

0 comments on commit c7f0477

Please sign in to comment.