Skip to content

Commit

Permalink
fix: resolve issue with guest use case
Browse files Browse the repository at this point in the history
  • Loading branch information
dyersituations committed Dec 5, 2024
1 parent ebf28a0 commit 56590d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Thanks/ThanksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ 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);
// MyKiva view only shown if user is not opted-in or checkout achieved badges
this.myKivaEnabled = !this.optedIn || this.badgesAchieved.length > 0;
// 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) {
logReadQueryError(e, 'ThanksPage postCheckoutAchievementsQuery');
}
Expand Down

0 comments on commit 56590d4

Please sign in to comment.