From 342da61aa93dc0d0119d864043dce2e52c7660f3 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Thu, 22 Jan 2026 15:07:30 -0800 Subject: [PATCH] [PM-27086] Remove redundant checks --- .../set-initial-password.component.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/angular/src/auth/password-management/set-initial-password/set-initial-password.component.ts b/libs/angular/src/auth/password-management/set-initial-password/set-initial-password.component.ts index c8473544663..7850a980eef 100644 --- a/libs/angular/src/auth/password-management/set-initial-password/set-initial-password.component.ts +++ b/libs/angular/src/auth/password-management/set-initial-password/set-initial-password.component.ts @@ -131,19 +131,14 @@ export class SetInitialPasswordComponent implements OnInit { FeatureFlag.EnableAccountEncryptionV2JitPasswordRegistration, ); - // // Scenario 1: KM flag ON + // Scenario 1: KM flag ON if (accountEncryptionV2) { await this.setInitialPasswordJitMPUserV2Encryption(passwordInputResult); return; } // Scenario 2: KM flag OFF, Auth flag ON - if ( - passwordInputResult.newApisWithInputPasswordFlagEnabled && - !passwordInputResult.newMasterKey && - !passwordInputResult.newServerMasterKeyHash && - !passwordInputResult.newLocalMasterKeyHash - ) { + if (passwordInputResult.newApisWithInputPasswordFlagEnabled) { /** * If the Auth flag is enabled, it means the InputPasswordComponent will not emit a newMasterKey, * newServerMasterKeyHash, and newLocalMasterKeyHash. So we must create them here and add them late