forked from mirrors/catstodon
remove outdated comments
This commit is contained in:
parent
e405eb76f4
commit
f580ffb127
2 changed files with 0 additions and 8 deletions
|
@ -36,10 +36,6 @@ export default class StatusReactions extends ImmutablePureComponent {
|
|||
.filter(x => x.get('count') > 0)
|
||||
.sort((a, b) => b.get('count') - a.get('count'));
|
||||
|
||||
// numVisible might be NaN because it's pulled from local settings
|
||||
// which doesn't do a whole lot of input validation, but that's okay
|
||||
// because NaN >= 0 evaluates false.
|
||||
// Still, this should be improved at some point.
|
||||
if (numVisible >= 0) {
|
||||
visibleReactions = visibleReactions.filter((_, i) => i < numVisible);
|
||||
}
|
||||
|
|
|
@ -36,10 +36,6 @@ export default class StatusReactions extends ImmutablePureComponent {
|
|||
.filter(x => x.get('count') > 0)
|
||||
.sort((a, b) => b.get('count') - a.get('count'));
|
||||
|
||||
// numVisible might be NaN because it's pulled from local settings
|
||||
// which doesn't do a whole lot of input validation, but that's okay
|
||||
// because NaN >= 0 evaluates false.
|
||||
// Still, this should be improved at some point.
|
||||
if (numVisible >= 0) {
|
||||
visibleReactions = visibleReactions.filter((_, i) => i < numVisible);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue