Add a feature flag for badge display.

This commit is contained in:
Alex Hart
2021-11-04 14:47:14 -03:00
committed by Greyson Parrelli
parent 33dbf316a9
commit 392d582865
3 changed files with 23 additions and 5 deletions

View File

@@ -1028,7 +1028,7 @@ public class Recipient {
}
public @NonNull List<Badge> getBadges() {
return badges;
return FeatureFlags.displayDonorBadges() ? badges : Collections.emptyList();
}
public @Nullable Badge getFeaturedBadge() {