fix: bloc
This commit is contained in:
+2
@@ -30,6 +30,8 @@ class _ProfileChangePasswordPageState extends State<ProfileChangePasswordPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocListener<ChangePasswordFormBloc, ChangePasswordFormState>(
|
||||
listenWhen: (p, c) =>
|
||||
p.failureOrChangePasswordOption != c.failureOrChangePasswordOption,
|
||||
listener: (context, state) {
|
||||
state.failureOrChangePasswordOption.fold(
|
||||
() => null,
|
||||
|
||||
Reference in New Issue
Block a user