File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
frontend/src/app/feature/user/profile Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments