mirror of https://github.com/ppy/osu
Use `Unknown` instead of `default`
This commit is contained in:
parent
51f91fe62e
commit
1e151baae8
|
@ -18,7 +18,7 @@ public class RealmUser : EmbeddedObject, IUser, IEquatable<RealmUser>, IDeepClon
|
|||
[Ignored]
|
||||
public CountryCode CountryCode
|
||||
{
|
||||
get => Enum.TryParse(CountryString, out CountryCode country) ? country : default;
|
||||
get => Enum.TryParse(CountryString, out CountryCode country) ? country : CountryCode.Unknown;
|
||||
set => CountryString = value.ToString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue