Skip to content

Commit

Permalink
fix: do not change validation errors collection (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev authored Oct 31, 2024
1 parent 43ffac1 commit 9b8ccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VirtoCommerce.XCart.Core/CartAggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public virtual string Scope

public virtual IList<ValidationFailure> GetValidationErrors()
{
return CartValidationErrors.AddRange(OperationValidationErrors).ToList();
return CartValidationErrors.Concat(OperationValidationErrors).ToList();
}

public virtual CartAggregate GrabCart(ShoppingCart cart, Store store, Member member, Currency currency)
Expand Down

0 comments on commit 9b8ccce

Please sign in to comment.