Skip to content

Commit

Permalink
Reverting a change that overwritten a commit (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
tysg committed Nov 11, 2019
1 parent 59e2e6f commit 332672b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/seedu/address/ui/DriverCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.model.person.Driver;
import seedu.address.model.person.Schedule;

/**
* An UI component that displays information of a {@code Person}.
Expand Down Expand Up @@ -33,11 +32,7 @@ public DriverCard(Driver driver, int displayedIndex) {
id.setText(displayedIndex + ". ");
name.setText(driver.getName().fullName);
driverId.setText("Driver ID: #" + driver.getId());
if (driver.getSchedule().toString().equals(Schedule.MESSAGE_EMPTY_SCHEDULE)) {
availability.setText("Unavailable Time: Available all times");
} else {
availability.setText("Unavailable Time: " + driver.getSchedule());
}
availability.setText("Unavailable Time: " + driver.getSchedule());
}

@Override
Expand Down

0 comments on commit 332672b

Please sign in to comment.