Skip to content

Commit

Permalink
fix: show barcode value instead of class when displaying the product …
Browse files Browse the repository at this point in the history
…not found

Fixes #4889
  • Loading branch information
VaiTon committed Dec 24, 2022
1 parent bc835a8 commit 66bedd3
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,14 @@ class ContinuousScanActivity : BaseActivity(), IProductView {
offlineSavedProduct: OfflineSavedProduct?,
barcode: Barcode,
@StringRes errorMsg: Int,
) = if (offlineSavedProduct != null) showOfflineSavedDetails(offlineSavedProduct)
else showProductNotFound(getString(errorMsg, barcode))
) {
if (offlineSavedProduct != null) {
showOfflineSavedDetails(offlineSavedProduct)
} else {
val rawBarcode = barcode.raw
showProductNotFound(getString(errorMsg, rawBarcode))
}
}

private fun setupSummary(product: Product) {
binding.callToActionImageProgress.visibility = View.VISIBLE
Expand Down

0 comments on commit 66bedd3

Please sign in to comment.