Skip to content

Commit

Permalink
fix: resolve issue where equality badge wasn't being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
dyersituations committed Dec 5, 2024
1 parent 0b50dfb commit aab297a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Thanks/ThanksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ export default {
});
this.badgesAchieved = response?.postCheckoutAchievements?.overallProgress ?? [];
// Don't show badges without a new tier achieved
this.badgesAchieved = this.badgesAchieved.filter(b => b.preCheckoutTier !== b.postCheckoutTier);
this.badgesAchieved = this.badgesAchieved.filter(b => {
// The equality badge doesn't have tiers
return b.preCheckoutTier === null || b.preCheckoutTier !== b.postCheckoutTier;
});
// MyKiva view only shown if user is guest, is not opted-in, or checkout achieved badges
this.myKivaEnabled = this.isGuest || !this.optedIn || this.badgesAchieved.length > 0;
} catch (e) {
Expand Down

0 comments on commit aab297a

Please sign in to comment.