Skip to content

Commit

Permalink
Merge f25dde9 into a037d62
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Feb 9, 2021
2 parents a037d62 + f25dde9 commit 483cda0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@
"scripts": {
"test": "grunt test coverage"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/{js,config}/**/*.js": "eslint --fix"
},
"browserslist": [
"cover 99% in my stats"
]
Expand Down
6 changes: 5 additions & 1 deletion src/js/widgets/results/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ define([
d.normCiteSort = normCiteSort;

if (normCiteSort) {
d.citationCountNorm = d.citation_count_norm.toFixed(2);
try {
d.citationCountNorm = d.citation_count_norm.toFixed(2);
} catch (e) {
d.citationCountNorm = 0;
}
}
// used by link generator mixin
d.link_server = link_server;
Expand Down

0 comments on commit 483cda0

Please sign in to comment.