@idsoftsource/initial-process 2.7.5 → 2.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36337,7 +36337,7 @@ class ClaimProcessComponent {
36337
36337
  // If userId is from the token service, save the paramType to localStorage for
36338
36338
  // refresh persistence and clear it from the URL. The actual role binding happens
36339
36339
  // in loadUserRoles() as a fallback when the API returns no existing roles.
36340
- if (paramType && userId) {
36340
+ if (paramType) {
36341
36341
  localStorage.setItem(ClaimProcessComponent.ROLE_TYPE_KEY, paramType);
36342
36342
  if (!paramEmail) {
36343
36343
  this.router.navigate([], { relativeTo: this.route, queryParams: {}, replaceUrl: true });
@@ -36444,6 +36444,7 @@ class ClaimProcessComponent {
36444
36444
  this.isLoadingUser = false;
36445
36445
  if (!data?.id) {
36446
36446
  this.userHasExistingDetails = false;
36447
+ this.isInitialSetupCompleted = false;
36447
36448
  this.updatePasswordValidators();
36448
36449
  this.loadUserRoles();
36449
36450
  return;
@@ -36547,8 +36548,6 @@ class ClaimProcessComponent {
36547
36548
  }
36548
36549
  return;
36549
36550
  }
36550
- // User already has roles — the localStorage type is no longer needed
36551
- localStorage.removeItem(ClaimProcessComponent.ROLE_TYPE_KEY);
36552
36551
  const BUSINESS = ['Provider', 'Contractor', 'InsuranceAgency', 'RealEstateCompany'];
36553
36552
  const ZERO_GUID = '00000000-0000-0000-0000-000000000000';
36554
36553
  const viewValues = this.userViewRoles.map(r => r.value);
@@ -36976,6 +36975,8 @@ class ClaimProcessComponent {
36976
36975
  }
36977
36976
  this.saveUserIndustries();
36978
36977
  sessionStorage.removeItem(ClaimProcessComponent.SESSION_KEY);
36978
+ // User already has roles — the localStorage type is no longer needed
36979
+ localStorage.removeItem(ClaimProcessComponent.ROLE_TYPE_KEY);
36979
36980
  this.submitSuccess = true;
36980
36981
  this.isSubmitting = false;
36981
36982
  this.uploadStatus = '';