You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parseFloat() is being used to parse the number input on the c1 step, which may not end up with the right result because of how permissive this function is. Instead, we should have a front end validation to get the user to input numbers only.
There may be other inputs where the same thing is happening, so might be a good idea to audit the app for these and use the validation on all of them.
The text was updated successfully, but these errors were encountered:
Since this suggestion was made we've cleaned up our state management so it should be easier to do something like this in src/library/user-state-manager.tsx as the values are being set.
We might need to come up with a new way to bubble up the warnings to the UI consistently though.
parseFloat()
is being used to parse the number input on the c1 step, which may not end up with the right result because of how permissive this function is. Instead, we should have a front end validation to get the user to input numbers only.There may be other inputs where the same thing is happening, so might be a good idea to audit the app for these and use the validation on all of them.
The text was updated successfully, but these errors were encountered: