Skip to content

Commit ab5513e

Browse files
committed
Fix read status logic when rendering books
1 parent 4843708 commit ab5513e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debugging/book-library/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ function render() {
7777
wasReadCell.appendChild(changeBut);
7878
let readStatus = "";
7979
if (myLibrary[i].check == false) {
80-
readStatus = "Yes";
81-
} else {
8280
readStatus = "No";
81+
} else {
82+
readStatus = "Yes";
8383
}
8484
changeBut.innerText = readStatus;
8585

0 commit comments

Comments
 (0)