-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing Salt/Sodium content field does not work correctly with fractions without leading zero #6717
Labels
🐛 bug
This is a bug, not a feature request.
✏️ Editing - Nutrition
JavaScript
🧂 Salt
⏰ Stale
This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Comments
This issue is stale because it has been open 90 days with no activity. |
@teolemon I can work on this. Can you assign this bug to me. |
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 18, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 18, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 18, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 18, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 18, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 21, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 21, 2023
…m content field Fixes openfoodfacts#6717
danwyk
added a commit
to danwyk/openfoodfacts-server
that referenced
this issue
Nov 21, 2023
…m content field Fixes openfoodfacts#6717
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🐛 bug
This is a bug, not a feature request.
✏️ Editing - Nutrition
JavaScript
🧂 Salt
⏰ Stale
This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Describe the bug
On the product edit page, setting fractional salt or sodium value without leading zero produces incorrect calculated value for the corresponding field.
To Reproduce
.53
and move to the next field.21.200000000000003
Expected behavior
Calculation to work without setting leading zero to the fraction.
Screenshots
Additional context
The swap salt function concatenates
match[1]
in front of the result which leads to having the decimal point twice.Type of device
Browser
Browser version
Version 100.0.4896.127 (Official Build) (64-bit)
Number of products impacted
No response
Time per product
No response
The text was updated successfully, but these errors were encountered: