Skip to content

Commit

Permalink
Merge pull request #13 from Phalcode/develop
Browse files Browse the repository at this point in the history
Bug fix: When registering a new user, the message "Each field must be…
  • Loading branch information
Alfagun74 authored Jul 3, 2023
2 parents 2c40282 + 82318be commit ac59e87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
## 1.0.0

- Initial Release

#### 1.0.1

- Bug fix: When registering a new user, the message "Each field must be filled" was displayed, although all fields were set.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private bool HasEmptyFields()
var properties = SettingsViewModel.Instance.RegistrationUser.GetType().GetProperties();
foreach (var property in properties)
{
if (property.Name != "DeletedAt" && property.Name != "Progresses" && property.Name != "ProfilePicture")
if (property.Name != "DeletedAt" && property.Name != "Progresses" && property.Name != "ProfilePicture" && property.Name != "Role")
{
if (property.GetValue(SettingsViewModel.Instance.RegistrationUser) == null || property.GetValue(SettingsViewModel.Instance.RegistrationUser).ToString() == string.Empty)
{
Expand Down
2 changes: 1 addition & 1 deletion crackpipe/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public string Version
{
get
{
return "1.0.0";
return "1.0.1";
}
}

Expand Down

0 comments on commit ac59e87

Please sign in to comment.