From 6757c8df741c22d6d129f2e88da7f6d30494ff85 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Wed, 7 Aug 2024 18:54:35 +0500 Subject: [PATCH] 12739 - fix number_with_precision method --- app/helpers/admin/products_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/admin/products_helper.rb b/app/helpers/admin/products_helper.rb index d0d5611d80..152be551a9 100644 --- a/app/helpers/admin/products_helper.rb +++ b/app/helpers/admin/products_helper.rb @@ -22,7 +22,8 @@ module Admin precised_unit_value = number_with_precision( scaled_unit_value, precision: nil, - strip_insignificant_zeros: true + strip_insignificant_zeros: true, + significant: false, ) [precised_unit_value, variant.unit_description].compact_blank.join(" ")