Fix bonus ID check (#223)
This commit is contained in:
@@ -872,7 +872,7 @@ public class ProfileFixerService(
|
||||
protected Bonus? GetBonusFromProfile(List<Bonus>? profileBonuses, Bonus bonus)
|
||||
{
|
||||
// match by id first, used by "TextBonus" bonuses
|
||||
if (bonus.Id is null)
|
||||
if (bonus.Id is not null)
|
||||
{
|
||||
return profileBonuses?.FirstOrDefault(x => x.Id == bonus.Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user