Skip to content
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

fix: update value conversion logic in convertValuesToNumbers function #7222

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

noodleslove
Copy link
Contributor

There's a bug in the keypairListComponent, for instance, typing "0.8" results in "08" because the convertValuesToNumbers function incorrectly processes "0." as a number and removes the decimal point.

To fix this, I updated the logic so that any input matching the pattern "(any number)." is treated as a string rather than a number. If the input follows the pattern "(any number).(any number)", it will be correctly converted to a number.

This ensures that decimal values are preserved during input.

Refactored the value conversion logic to handle both numeric and string values more accurately.
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Mar 22, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Mar 22, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant