Skip to content

Commit

Permalink
fix: openfoodfacts#1139 - carousel spinning issues refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cli1005 committed Apr 25, 2022
1 parent 1c1037f commit 99e4b79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _SmoothProductCarouselState extends State<SmoothProductCarousel> {
} else if (_model.latestConsultedBarcode != null &&
_model.latestConsultedBarcode!.isNotEmpty) {
final int indexBarcode =
barcodes.indexOf(_model.latestConsultedBarcode ?? '');
barcodes.indexOf(_model.latestConsultedBarcode!);
final int indexCarousel = indexBarcode + _searchCardAdjustment;
_controller.animateToPage(indexCarousel);
} else {
Expand Down

0 comments on commit 99e4b79

Please sign in to comment.