fix: bloc

This commit is contained in:
efrilm
2025-08-19 15:36:34 +07:00
parent 1b1e8c5bb4
commit 838707becf
3 changed files with 5 additions and 3 deletions
@@ -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,