Skip to content

Commit

Permalink
Merge pull request #174 from Holo-Host/fix/recent-transactions-list
Browse files Browse the repository at this point in the history
Fix/show only "Completed" payments on recent payments card
  • Loading branch information
mateuszRybczonek authored Sep 9, 2024
2 parents e288245 + dcdc168 commit 2454cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/DashboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const earnings = computed(() =>
const recentPayments = computed(() =>
isError(dashboardStore.hostEarnings)
? dashboardStore.hostEarnings
: dashboardStore.hostEarnings.recentPayments.slice(0, kPaymentsToDisplay)
: dashboardStore.hostEarnings.recentPayments.filter(payment => payment.status === 'Completed').slice(0, kPaymentsToDisplay)
)
const usage = computed(() => dashboardStore.usage)
Expand Down

0 comments on commit 2454cf5

Please sign in to comment.