This commit is contained in:
2026-04-21 18:24:25 +02:00
parent 72d0c79c74
commit 4e14534b1b

View File

@@ -58,10 +58,7 @@ class PersonalDataViewModel extends Notifier<PersonalDataViewState> {
);
} catch (_) {
if (!ref.mounted) return;
state = state.copyWith(
isLoading: false,
errorMessage: I18n.errorGeneric,
);
state = state.copyWith(isLoading: false, errorMessage: I18n.errorGeneric);
}
}
@@ -120,9 +117,9 @@ class PersonalDataViewModel extends Notifier<PersonalDataViewState> {
if (!ref.mounted) return;
final updatedUser = user.copyWith(
firstName: request.firstName ?? user.firstName,
lastName: request.lastName ?? user.lastName,
phone: request.phone ?? user.phone,
firstName: request.firstName,
lastName: request.lastName,
phone: request.phone,
);
ref.read(userInfoProvider.notifier).setUser(updatedUser);