Skip to content

Commit b7ee48a

Browse files
committed
removing unwanted code
1 parent 35cea2f commit b7ee48a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

frontend/src/app/feature/user/profile/profile.component.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,6 @@ export class ProfileComponent implements OnInit {
147147
this.userData.set(updatedUserData);
148148
this.authState.updateUser(updatedUserData); // Update shared state
149149

150-
// Sync with localStorage - preserve existing properties
151-
// const currentUser = JSON.parse(localStorage.getItem('currentUser') || '{}');
152-
// console.log('currentUser', currentUser);
153-
// const updatedUser = {
154-
// ...currentUser,
155-
// firstName: data.firstName,
156-
// lastName: data.lastName,
157-
// userName: data.userName,
158-
// email: data.email,
159-
// mobile: data.mobile,
160-
// token: currentUser.token,
161-
// rolePermissions: currentUser.rolePermissions
162-
// };
163-
// localStorage.setItem('currentUser', JSON.stringify(updatedUser));
164-
165150
this.notificationService.success('Profile updated successfully');
166151
this.loading = false;
167152
this.isEditMode.set(false);

0 commit comments

Comments
 (0)