Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: event tracking, hide receipt if zero donations #4968

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/pages/Portfolio/ImpactDashboard/YourDonations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ averageDonation }}
</dt>
<dd class="stat-def">
Average donation per $25 lent
Avg. donation per $25 lent
</dd>
<button
class="staf-link" @click="donationLightboxVisible = true"
Expand All @@ -23,6 +23,7 @@
/>
</button>
<kv-lightbox
class="tw-text-left"
:visible="donationLightboxVisible" title="Average donation per $25 lent"
@lightbox-closed="donationLightboxVisible = false"
>
Expand Down Expand Up @@ -74,12 +75,13 @@
{{ lastYear }} donations
</dd>
<a
v-if="lastYearDonations"
:href="taxReceiptUrl" class="staf-link"
target="_blank"
:v-kv-track-event="`[
v-kv-track-event="[
'portfolio',
'click',
${lastYear}-tax-receipt]`"
`${lastYear}-tax-receipt`]"
>
{{ lastYear }} tax receipt
<kv-material-icon
Expand Down
Loading