Skip to content

Commit

Permalink
fix small logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog authored and henrikhorluck committed Jul 27, 2024
1 parent 49290cf commit d2f7e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def save(self, *args, **kwargs):
auth0 = auth0 if auth0 is not None else auth0_client()
auth0.users.update(self.auth0_subject, {"given_name": self.first_name})

if self.last_name != old.last_name and len(self.first_name) > 0:
if self.last_name != old.last_name and len(self.last_name) > 0:
auth0 = auth0 if auth0 is not None else auth0_client()
auth0.users.update(self.auth0_subject, {"family_name": self.last_name})

Expand Down

0 comments on commit d2f7e41

Please sign in to comment.