Skip to content

Commit

Permalink
CB-5738 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Oct 26, 2024
1 parent 3cb9f8d commit 4cb4d6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ export class UserProfileFormAuthenticationPart extends FormPart<IUserProfileForm
const state = USER_PROFILE_FORM_AUTHENTICATION_PART_STATE_SCHEMA.safeParse(this.state);
const validation = contexts.getContext(formValidationContext);

if (!this.isChanged) {
return;
}

if (!state.success) {
validation.error(schemaValidationError(state.error, { prefix: null }).toString());
return;
Expand All @@ -81,10 +77,6 @@ export class UserProfileFormAuthenticationPart extends FormPart<IUserProfileForm
}

protected async saveChanges(): Promise<void> {
if (!this.isChanged) {
return;
}

await this.userInfoResource.updateLocalPassword(this.state.oldPassword, this.state.password);
}

Expand Down
1 change: 0 additions & 1 deletion webapp/packages/plugin-user-profile/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ export * from './UserProfileTabsService.js';
export * from './UserProfileOptionsPanelService.js';
export * from './UserMenu/MENU_USER_PROFILE.js';
export * from './UserMenu/UserMenuLazy.js';
export * from './UserProfileForm/UserProfileFormService.js';

0 comments on commit 4cb4d6f

Please sign in to comment.