Skip to content

Commit 585db25

Browse files
authored
fix typo
1 parent 7356ee1 commit 585db25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vis/js/templates/listentry/Details.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ const getAuthorsString = (authorsList, maxLength) => {
5353

5454
const ellipsis = "...";
5555
const join = ", ";
56-
const maxLengthAthors = 15;
56+
const maxLengthAuthors = 15;
5757
let finalString = authorsListCopy.shift();
58-
if (authorsList.length > maxLengthAthors) {
59-
const firstAuthors = authorsList.slice(0, maxLengthAthors - 1).join(join);
58+
if (authorsList.length > maxLengthAuthors) {
59+
const firstAuthors = authorsList.slice(0, maxLengthAuthors - 1).join(join);
6060
const lastAuthor = authorsList[authorsList.length - 1];
6161
finalString = `${firstAuthors}, ... ${lastAuthor}`;
6262
return finalString;

0 commit comments

Comments
 (0)