fix: errores de compilación - rethusValidated requerido y refreshUser void

- professional_form_provider: agregar rethusValidated al constructor Profesional
- professional_provider: agregar rethusCode y rethusValidated al fallback del constructor
- profile_view: quitar await de refreshUser() que retorna void

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-27 18:40:28 -05:00
co-authored by Claude Sonnet 4.6
parent dd3053d3b3
commit 4951f82621
3 changed files with 4 additions and 1 deletions
@@ -37,6 +37,7 @@ class ProfessionalFormProvider with ChangeNotifier {
id: id ?? profesional!.id,
identification: identification ?? profesional!.identification,
rethusCode: rethusCode ?? profesional!.rethusCode,
rethusValidated: profesional!.rethusValidated,
address: address ?? profesional!.address,
aditionalAddress: aditionalAddress ?? profesional!.aditionalAddress,
profession: profession ?? profesional!.profession,
+2
View File
@@ -20,6 +20,8 @@ class ProfessionalProvider extends ChangeNotifier {
profesional = Profesional(
id: uid,
identification: '',
rethusCode: '',
rethusValidated: false,
address: '',
aditionalAddress: '',
profession: '',
+1 -1
View File
@@ -438,7 +438,7 @@ class _EmailCardState extends State<_EmailCard> {
'password': _passCtrl.text,
'code': code,
});
await context.read<AuthProvider>().refreshUser();
context.read<AuthProvider>().refreshUser();
NotificationsService.showSnackbar('Correo vinculado correctamente');
} catch (_) {
_err('Código incorrecto o expirado');