Skip to content

Commit ec9e8c4

Browse files
committed
Change name of function for consistency
1 parent c124eda commit ec9e8c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Book.prototype.createBookCard = function () {
138138
this.editButton.textContent = 'edit';
139139

140140
if (this.reviewed) {
141-
this.addUserReviewButtonToCard();
141+
this.addFullBookCardButtonToCard();
142142
}
143143

144144
return this.bookCardWrapper;
@@ -173,7 +173,7 @@ Book.prototype.updateEditBook = function () {
173173
this.createBookCard();
174174

175175
if (this.reviewed) {
176-
this.addUserReviewButtonToCard();
176+
this.addFullBookCardButtonToCard();
177177
}
178178

179179
// prevents event listeners from stacking => future calls will change any card already editted
@@ -188,7 +188,7 @@ Book.prototype.prefillEditBookForm = function () {
188188
document.querySelector(`#editBookForm [value="${this.progress}"]`).checked = true;
189189
}
190190

191-
Book.prototype.addUserReviewButtonToCard = function () {
191+
Book.prototype.addFullBookCardButtonToCard = function () {
192192
if (!this.fullBookCardButton) {
193193
this.fullBookCardButton = document.createElement('button');
194194
this.fullBookCardButton.textContent = "...";

0 commit comments

Comments
 (0)