-
-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(friendlist): handle legacy pbs in friendlist frontend (show less details) (@wradion) #7296
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
base: master
Are you sure you want to change the base?
Conversation
|
Sorry I was fighting with the trailing comma, because I've seen in the guidelines there shouldn't be one (but I guess it just applies strictly to JSON files), and I didn't know/understood right away that the linter would add it automatically. I'm so sorry, it just messes up the history of the PR and triggered builds for nothing. |
frontend/src/ts/pages/friends.ts
Outdated
| if (entry.raw) { | ||
| details.push(`${result.raw} raw`); | ||
| } | ||
| if (entry.consistency) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not show consistency when it's 0%. Let's use a more specific if statement:
if (entry.consistency != null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter doesn't let me use !=, so I did a check on 0 instead
Description
Show less details for legacy PBs in the friendlist.
Checks