From 82d596994a4e7e12b14ebc4a19172917a10bd02c Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 15 Jan 2018 12:20:24 +0100 Subject: [PATCH] Fixed commas not created when more than two authors --- frontend/src/components/Books.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Books.vue b/frontend/src/components/Books.vue index d4067cf..e50b35d 100644 --- a/frontend/src/components/Books.vue +++ b/frontend/src/components/Books.vue @@ -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 += ', ' } }