Fix bonus ID check (#223)

This commit is contained in:
hulkhan22
2025-05-01 23:04:17 +02:00
committed by GitHub
parent 1976218991
commit 25386d588f
@@ -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);
}