From a8afee509beb76cb226e6dc0adfadacf81369e57 Mon Sep 17 00:00:00 2001 From: fef Date: Wed, 30 Nov 2022 19:29:56 +0000 Subject: [PATCH] remove outdated comments --- app/javascript/flavours/glitch/components/status_reactions.js | 4 ---- app/javascript/mastodon/components/status_reactions.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status_reactions.js b/app/javascript/flavours/glitch/components/status_reactions.js index 39956270a4..df2a686abd 100644 --- a/app/javascript/flavours/glitch/components/status_reactions.js +++ b/app/javascript/flavours/glitch/components/status_reactions.js @@ -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); } diff --git a/app/javascript/mastodon/components/status_reactions.js b/app/javascript/mastodon/components/status_reactions.js index 39956270a4..df2a686abd 100644 --- a/app/javascript/mastodon/components/status_reactions.js +++ b/app/javascript/mastodon/components/status_reactions.js @@ -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); }