Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naivekook committed Feb 15, 2021
1 parent 114af5a commit 3aa79f9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -154,7 +154,7 @@ class ProductEditNutritionFactsFragment : ProductEditFragment() {
it.addValidListener()
it.checkValue()
}
(requireActivity() as? ProductEditActivity)?.initialValues?.let { values ->
(activity as? ProductEditActivity)?.initialValues?.let { values ->
addAllFieldsToMap(values)
}
}
Expand Down Expand Up @@ -716,7 +716,7 @@ class ProductEditNutritionFactsFragment : ProductEditFragment() {
modSpinner.setSelection(modSelectedIndex)
}
} catch (t: Throwable) {
AnalyticsService.record(Throwable("Can't find weight units for nutriment: $nutrientShortName", t))
AnalyticsService.record(IllegalStateException("Can't find weight units for nutriment: $nutrientShortName", t))
closeScreenWithAlert()
}

Expand Down

0 comments on commit 3aa79f9

Please sign in to comment.