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,
|
id: id ?? profesional!.id,
|
||||||
identification: identification ?? profesional!.identification,
|
identification: identification ?? profesional!.identification,
|
||||||
rethusCode: rethusCode ?? profesional!.rethusCode,
|
rethusCode: rethusCode ?? profesional!.rethusCode,
|
||||||
|
rethusValidated: profesional!.rethusValidated,
|
||||||
address: address ?? profesional!.address,
|
address: address ?? profesional!.address,
|
||||||
aditionalAddress: aditionalAddress ?? profesional!.aditionalAddress,
|
aditionalAddress: aditionalAddress ?? profesional!.aditionalAddress,
|
||||||
profession: profession ?? profesional!.profession,
|
profession: profession ?? profesional!.profession,
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ class ProfessionalProvider extends ChangeNotifier {
|
|||||||
profesional = Profesional(
|
profesional = Profesional(
|
||||||
id: uid,
|
id: uid,
|
||||||
identification: '',
|
identification: '',
|
||||||
|
rethusCode: '',
|
||||||
|
rethusValidated: false,
|
||||||
address: '',
|
address: '',
|
||||||
aditionalAddress: '',
|
aditionalAddress: '',
|
||||||
profession: '',
|
profession: '',
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ class _EmailCardState extends State<_EmailCard> {
|
|||||||
'password': _passCtrl.text,
|
'password': _passCtrl.text,
|
||||||
'code': code,
|
'code': code,
|
||||||
});
|
});
|
||||||
await context.read<AuthProvider>().refreshUser();
|
context.read<AuthProvider>().refreshUser();
|
||||||
NotificationsService.showSnackbar('Correo vinculado correctamente');
|
NotificationsService.showSnackbar('Correo vinculado correctamente');
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
_err('Código incorrecto o expirado');
|
_err('Código incorrecto o expirado');
|
||||||
|
|||||||
Reference in New Issue
Block a user