-
Notifications
You must be signed in to change notification settings - Fork 956
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
Correctly Show View Count for Video when there is Zero Views #6596
base: development
Are you sure you want to change the base?
Correctly Show View Count for Video when there is Zero Views #6596
Conversation
Please change it in the local API parsing not in the display code. If we know that there are zero views we should show 0 views, we only hide stuff when the information is not available (e.g. published dates on the channel shorts tab). |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
a9d4063
to
b57f44c
Compare
@absidue : Done, let me know if you see any issues |
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
That is a display issue, isn't it? Should the function extractNumberFromString(str) really return zero if there's no number in the string? NaN is clearly more appropriate. Displaying a NaN view count as zero should be safe. Redefining NaN to be zero? Not so much. |
Title
Correctly Show View Count for Video when there is Zero Views
Pull Request Type
Related issue
Resolve #6568
Description
This PR solve the issue of showing
NaN Views
when there's zero view count for a videoScreenshots