File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ Book.prototype.createBookCard = function () {
138
138
this . editButton . textContent = 'edit' ;
139
139
140
140
if ( this . reviewed ) {
141
- this . addUserReviewButtonToCard ( ) ;
141
+ this . addFullBookCardButtonToCard ( ) ;
142
142
}
143
143
144
144
return this . bookCardWrapper ;
@@ -173,7 +173,7 @@ Book.prototype.updateEditBook = function () {
173
173
this . createBookCard ( ) ;
174
174
175
175
if ( this . reviewed ) {
176
- this . addUserReviewButtonToCard ( ) ;
176
+ this . addFullBookCardButtonToCard ( ) ;
177
177
}
178
178
179
179
// prevents event listeners from stacking => future calls will change any card already editted
@@ -188,7 +188,7 @@ Book.prototype.prefillEditBookForm = function () {
188
188
document . querySelector ( `#editBookForm [value="${ this . progress } "]` ) . checked = true ;
189
189
}
190
190
191
- Book . prototype . addUserReviewButtonToCard = function ( ) {
191
+ Book . prototype . addFullBookCardButtonToCard = function ( ) {
192
192
if ( ! this . fullBookCardButton ) {
193
193
this . fullBookCardButton = document . createElement ( 'button' ) ;
194
194
this . fullBookCardButton . textContent = "..." ;
You can’t perform that action at this time.
0 commit comments