Skip to content

Commit

Permalink
fix: IsPerk
Browse files Browse the repository at this point in the history
  • Loading branch information
marfavi committed Nov 2, 2023
1 parent 6b84d47 commit 0a65d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffeecard/CoffeeCard.Library/Utils/ProductExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static bool IsPerk(this Product product)
throw new ArgumentNullException($"{nameof(Product.ProductUserGroup)} must not be null");
}

return product.ProductUserGroup.Any(pug => pug.UserGroup != UserGroup.Customer);
return product.ProductUserGroup.All(pug => pug.UserGroup != UserGroup.Customer);
}
}
}

0 comments on commit 0a65d11

Please sign in to comment.