Skip to content

Commit

Permalink
fix: openfoodfacts#1973-newly-added-in-carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
cli1005 committed Jun 8, 2022
1 parent 74f6668 commit 8e57fff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class _AddNewProductPageState extends State<AddNewProductPage> {
child: SmoothActionButtonsBar.single(
action: SmoothActionButton(
text: appLocalizations.finish,
onPressed: () {
Navigator.maybePop(
onPressed: () async {
await Navigator.maybePop(
context, _isProductLoaded ? widget.barcode : null);
},
),
Expand Down

0 comments on commit 8e57fff

Please sign in to comment.