Skip to content

Commit d3d2dcc

Browse files
committed
minor fix
1 parent 2d8910b commit d3d2dcc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

frontend/mela/lib/presentation/personal/edit_screens/edit_birthdate_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ class _EditBirthdateScreenState extends State<EditBirthdateScreen> {
179179
}
180180

181181
void _showBackConfirmationDialog(BuildContext context, String input) {
182-
if (input == widget.dob) return;
182+
if (input == widget.dob) {
183+
Navigator.of(context).pop();
184+
return;
185+
}
183186
showDialog(
184187
context: context,
185188
barrierDismissible: false,

frontend/mela/lib/presentation/personal/edit_screens/edit_name_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ class _EditNameScreenState extends State<EditNameScreen> {
132132
}
133133

134134
void _showBackConfirmationDialog(BuildContext context, String input) {
135-
if (input == widget.name) return;
135+
if (input == widget.name) {
136+
Navigator.of(context).pop();
137+
return;
138+
}
136139
showDialog(
137140
context: context,
138141
barrierDismissible: false,

0 commit comments

Comments
 (0)