Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Utar94 committed Oct 7, 2024
1 parent a1acc03 commit d7d0df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/Logitar.Cms.Core/Languages/Locale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public Locale(CultureInfo culture)
new Validator().ValidateAndThrow(this);
}

public override bool Equals(object? obj) => obj is Locale locale && locale.Culture.Equals(Culture);
public override int GetHashCode() => Culture.GetHashCode();
public override bool Equals(object? obj) => obj is Locale locale && locale.Code == Code;
public override int GetHashCode() => Code.GetHashCode();
public override string ToString() => $"{DisplayName} ({Code})";

public class Validator : AbstractValidator<Locale>
Expand Down

0 comments on commit d7d0df1

Please sign in to comment.