There's a bug where you cannot enter numbers with any zeros after the decimal point. For example, typing 1.05 becomes 15.
1.05
15
This can be fixed by changing:
PriceField (Just price) _ -> toString price
to:
PriceField (Just _) price -> price
Here's a link to the code with that fix and updated to elm 0.19 ellie-app.com/6p5jwch2pYpa1
Good catch @milesfrain , Do you mind if I update the post with the bugfix + the 0.19 code? Cheers!
Feel free to update the post with those code changes
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There's a bug where you cannot enter numbers with any zeros after the decimal point. For example, typing
1.05becomes15.This can be fixed by changing:
to:
Here's a link to the code with that fix and updated to elm 0.19
ellie-app.com/6p5jwch2pYpa1
Good catch @milesfrain ,
Do you mind if I update the post with the bugfix + the 0.19 code?
Cheers!
Feel free to update the post with those code changes