Skip to content

Commit

Permalink
Updated condition for email user
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Jan 16, 2025
1 parent d4ee43b commit 976cfb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public String getEmailRegistrationPath(MailTemplatePathConfig config) {
.map(User::getId)
.findAny()
.orElse(null);
if (Objects.nonNull(this.onboarding.getPreviousManagerId())
&& this.onboarding.getPreviousManagerId().equals(managerId)) {
if (Objects.isNull(this.onboarding.getPreviousManagerId())
|| this.onboarding.getPreviousManagerId().equals(managerId)) {
return config.registrationUserPath();
}
return config.registrationUserNewManagerPath();
Expand Down

0 comments on commit 976cfb2

Please sign in to comment.