Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zoebelle-pang committed Mar 21, 2024
1 parent d1f63e4 commit 9fd0892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/seedu/address/storage/JsonAdaptedPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public Person toModelType() throws IllegalValueException {
throw new IllegalValueException(Subject.MESSAGE_CONSTRAINTS);
}
final Subject modelSubject = new Subject(subject);

if (attendance == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT,
Attendance.class.getSimpleName()));
Expand All @@ -160,7 +161,7 @@ public Person toModelType() throws IllegalValueException {

if (payment == null) {
throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT,
Attendance.class.getSimpleName()));
Payment.class.getSimpleName()));
}
if (!Payment.isValidPayment(payment)) {
throw new IllegalValueException(Payment.MESSAGE_CONSTRAINTS);
Expand Down

0 comments on commit 9fd0892

Please sign in to comment.