Fixed commas not created when more than two authors

This commit is contained in:
konrad 2018-01-15 12:20:24 +01:00 committed by kolaente
parent 3996f32e04
commit 82d596994a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export default {
let authors = bs[b].authors
for (const au in authors) {
this.books[i].author += authors[au].forename + ' ' + authors[au].lastname
if (authors.length > au + 1) {
if ((authors.length - 1) > au) {
this.books[i].author += ', '
}
}