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:
co-authored by
Claude Sonnet 4.6
parent
dd3053d3b3
commit
4951f82621
@@ -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,
|
||||
|
||||
@@ -20,6 +20,8 @@ class ProfessionalProvider extends ChangeNotifier {
|
||||
profesional = Profesional(
|
||||
id: uid,
|
||||
identification: '',
|
||||
rethusCode: '',
|
||||
rethusValidated: false,
|
||||
address: '',
|
||||
aditionalAddress: '',
|
||||
profession: '',
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user