Skip to content

Commit

Permalink
fix: #1973 new product in carousel (#2391)
Browse files Browse the repository at this point in the history
  • Loading branch information
cli1005 authored Jun 30, 2022
1 parent 16d615d commit 8ddb726
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class ContinuousScanModel with ChangeNotifier {

Future<bool> _addBarcode(final String barcode) async {
final ScannedProductState? state = getBarcodeState(barcode);
if (state == null) {
if (state == null || state == ScannedProductState.NOT_FOUND) {
if (!_barcodes.contains(barcode)) {
_barcodes.add(barcode);
}
Expand Down

0 comments on commit 8ddb726

Please sign in to comment.