Skip to content

Commit

Permalink
fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Valimp authored and Edouard Marquez committed Nov 14, 2024
1 parent 3b1f775 commit 5d09304
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ class _AddNewProductPageState extends State<AddNewProductPage>
),
];
_daoProductList = DaoProductList(localDatabase);
AnalyticsHelper.trackEvent(
AnalyticsHelper.trackProductEvent(
widget.events[EditProductAction.openPage]!,
barcode: barcode,
product: upToDateProduct,
);
_pageController.addListener(() => setState(() {}));
}
Expand Down Expand Up @@ -206,9 +206,9 @@ class _AddNewProductPageState extends State<AddNewProductPage>
),
);
if (leaveThePage == true) {
AnalyticsHelper.trackEvent(
AnalyticsHelper.trackProductEvent(
widget.events[EditProductAction.leaveEmpty]!,
barcode: barcode,
product: upToDateProduct,
);
}
return leaveThePage ?? false;
Expand Down Expand Up @@ -581,9 +581,7 @@ class _AddNewProductPageState extends State<AddNewProductPage>
productType: productType,
checked: productType == _inputProductType,
onChanged: (ProductType value) {
if (value != null) {
setState(() => _inputProductType = value);
}
setState(() => _inputProductType = value);
},
),
);
Expand Down

0 comments on commit 5d09304

Please sign in to comment.