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

[Bug] Negative percentage is formatted incorrectly and displayed as ZERO #1925

Open
2 of 3 tasks
BugCui opened this issue Nov 25, 2024 · 1 comment
Open
2 of 3 tasks
Labels
bug Something isn't working

Comments

@BugCui
Copy link

BugCui commented Nov 25, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

0.9.8

What's Wrong?

[Bug] Negative percentage is formatted incorrectly and displayed as ZERO, but positive percentage is right, as below:

image

image

What You Expected?

Negative percentage can be formatted correctly

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@BugCui BugCui added the bug Something isn't working label Nov 25, 2024
@shuanqverymuch
Copy link

Maybe the reason of this problem is from :

code in webapp/packages/chat-sdk/src/utils

  if (!/^[0-9.]+$/g.test(strValue)) {
    return '0';
  }

code in webapp/packages/supersonic-fe/src/utils

  if (!/^[0-9.]+$/g.test(str)) {
    return '0';
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants