Skip to content

Commit be4ee47

Browse files
committed
Update view-inventory for books on loan
1 parent a5de7e4 commit be4ee47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bookkeeper/model/Book.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public String toString() {
101101
+ " Category: " + getCategory() + System.lineSeparator()
102102
+ " Condition: " + getCondition() + System.lineSeparator()
103103
+ " On Loan: " + isOnLoan() + System.lineSeparator()
104-
+ " Location: " + getLocation() + System.lineSeparator()
104+
+ " Location: " + (isOnLoan() ? "Out on loan" : getLocation()) + System.lineSeparator()
105105
+ " Note: " + (note.isEmpty() ? "No notes available" : getNote());
106106
}
107107
}

0 commit comments

Comments
 (0)