Skip to content

Commit

Permalink
feat: default gender to unknown (#4753)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Dec 31, 2020
1 parent d6509e6 commit ebf7c08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### Enhancements:

*
* Use Unknown as default gender

### Fixes:

Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/AccountHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function canDowngrade(Account $account): bool
*/
public static function getDefaultGender(Account $account): string
{
$defaultGenderType = Gender::MALE;
$defaultGenderType = Gender::UNKNOWN;

if ($account->default_gender_id) {
$defaultGender = Gender::where([
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Helpers/AccountHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function it_gets_the_default_gender_for_the_account(): void
$account = factory(Account::class)->create();

$this->assertEquals(
Gender::MALE,
Gender::UNKNOWN,
AccountHelper::getDefaultGender($account)
);

Expand Down

0 comments on commit ebf7c08

Please sign in to comment.