Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
fix typo, s/THREADSHOLD/THRESHOLD/g
Browse files Browse the repository at this point in the history
  • Loading branch information
trel committed Oct 20, 2018
1 parent 382b638 commit 1d7627a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions reframe/views/profile/rightpanel/contrib/badges/Badges.js
Expand Up @@ -247,13 +247,13 @@ function getContribType(contrib) {
commits_count__total: totalCommitsCount,
} = getCommitCounts(contrib);

const THREADSHOLD_CROWN = 0.1;
const THRESHOLD_CROWN = 0.1;
const THRESHOLD_GOLD = 50;
const THRESHOLD_SILVER = 5;

const contribType = (
userCommitsCount > 1 &&
(totalCommitsCount * THREADSHOLD_CROWN <= 1 || userCommitsPercentage >= THREADSHOLD_CROWN) && (
(totalCommitsCount * THRESHOLD_CROWN <= 1 || userCommitsPercentage >= THRESHOLD_CROWN) && (
'contrib_crown'
) ||
userCommitsCount > THRESHOLD_GOLD && (
Expand Down Expand Up @@ -289,14 +289,14 @@ function getRepoScaleAssets(contrib) {
return {repoScale, repoScaleIcon, repoScaleHint};
}
function getRepoScale(totalCommitsCount) {
const THREADSHOLD_LARGE = 2000;
const THREADSHOLD_MEDIUM = 500;
const THREADSHOLD_SMALL = 50;
const THRESHOLD_LARGE = 2000;
const THRESHOLD_MEDIUM = 500;
const THRESHOLD_SMALL = 50;

const repoScale = (
totalCommitsCount > THREADSHOLD_LARGE && 'large' ||
totalCommitsCount > THREADSHOLD_MEDIUM && 'medium' ||
totalCommitsCount > THREADSHOLD_SMALL && 'small' ||
totalCommitsCount > THRESHOLD_LARGE && 'large' ||
totalCommitsCount > THRESHOLD_MEDIUM && 'medium' ||
totalCommitsCount > THRESHOLD_SMALL && 'small' ||
'micro'
);

Expand Down

0 comments on commit 1d7627a

Please sign in to comment.