mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
fix: convert @attrs[:units] to big decimal instead of float in the unit converter
This commit is contained in:
@@ -54,7 +54,7 @@ module ProductImport
|
||||
end
|
||||
|
||||
def assign_weight_or_volume_attributes
|
||||
units = @attrs['units'].to_f
|
||||
units = @attrs['units'].to_d
|
||||
unit_type = @attrs['unit_type'].to_s.downcase
|
||||
|
||||
return unless valid_unit_type? unit_type
|
||||
|
||||
Reference in New Issue
Block a user