Skip to content

Commit

Permalink
Merge pull request #74 from 24Donovan24/minorFixInDisplay
Browse files Browse the repository at this point in the history
Improve display message shown
  • Loading branch information
ErvinK123 authored Oct 13, 2022
2 parents 5d32f78 + 8ec969f commit 4a8ff12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gim/model/exercise/Exercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@ public String toString() {
builder.append(getName())
.append("; Weight: ")
.append(getWeight())
.append("kg")
.append("; Sets: ")
.append(getSets())
.append("; Reps: ")
.append(getReps());

Date date = getDate();
if (!(date == null)) {
builder.append("; Dates: ");
builder.append("; Date: ");
builder.append(date);
}
return builder.toString();
Expand Down

0 comments on commit 4a8ff12

Please sign in to comment.