Skip to content

Commit

Permalink
fix lastDateTime when accessing through prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Aug 4, 2024
1 parent f419424 commit a7f126a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default class Interval {
* @type {DateTime}
*/
get lastDateTime() {
return this.isValid ? this.e.minus(1) : null;
return this.isValid ? (this.e ? this.e.minus(1) : null) : null;
}

/**
Expand Down

0 comments on commit a7f126a

Please sign in to comment.