Skip to content

Commit

Permalink
Merge pull request #5568 from kiva/fix-null-team-leaderboard-query
Browse files Browse the repository at this point in the history
fix: pass null instead of all, which is not an enum option, in team l…
  • Loading branch information
mcstover authored Oct 1, 2024
2 parents c2fe667 + 486db0f commit 1e3f891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/LendingTeams/TeamLeaderboards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export default {
methods: {
getLeaderboards() {
this.isLoading = true;
fetchLeaderboard(this.apollo, this.teamCategory)
const selectedCategory = this.teamCategory === 'all' ? null : this.teamCategory;
fetchLeaderboard(this.apollo, selectedCategory)
.then(leaderboards => {
this.funded = leaderboards?.amountFunded ?? {};
this.members = leaderboards?.newUsers ?? {};
Expand Down

0 comments on commit 1e3f891

Please sign in to comment.