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

Dashboard getFormattedNumber method also formats number strings #91

Merged
merged 1 commit into from
Aug 23, 2014

Conversation

PUDRESCU
Copy link
Contributor

Use Case: Segmented event on product ids which are 9 digits. dashboard displays the segmentation using formatted numbers: 123,456,789 when we are looking for simply 12345678.

isNaN("1234") evaluates to false even though it's clearly a string (quotes) which results in the value getting formatted to 1,234 in the dashboard.

swapping isNaN out for underscores isNumber achieves the desired result

osoner added a commit that referenced this pull request Aug 9, 2014
@osoner osoner merged commit f8c658d into Countly:master Aug 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants