Change badge award notif setting group
This commit is contained in:
		
							parent
							
								
									867cdf2496
								
							
						
					
					
						commit
						17d0fb7da6
					
				| 
						 | 
				
			
			@ -312,7 +312,7 @@ async function handleBettingStreakBadgeAward(
 | 
			
		|||
    user.achievements?.streaker?.badges.some(
 | 
			
		||||
      (badge) => badge.data.totalBettingStreak === 1
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
  // TODO: check if already awarded 50th streak as well
 | 
			
		||||
  if (newBettingStreak === 1 && alreadyHasBadgeForFirstStreak) return
 | 
			
		||||
 | 
			
		||||
  if (newBettingStreak in streakerBadgeRarityThresholds) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -131,7 +131,6 @@ export function NotificationSettings(props: {
 | 
			
		|||
      'betting_streaks',
 | 
			
		||||
      'referral_bonuses',
 | 
			
		||||
      'unique_bettors_on_your_contract',
 | 
			
		||||
      'badges_awarded',
 | 
			
		||||
    ],
 | 
			
		||||
  }
 | 
			
		||||
  const otherBalances: SectionData = {
 | 
			
		||||
| 
						 | 
				
			
			@ -140,6 +139,7 @@ export function NotificationSettings(props: {
 | 
			
		|||
      'loan_income',
 | 
			
		||||
      'limit_order_fills',
 | 
			
		||||
      'tips_on_your_comments',
 | 
			
		||||
      'badges_awarded',
 | 
			
		||||
    ],
 | 
			
		||||
  }
 | 
			
		||||
  const userInteractions: SectionData = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user