Skip to content

Commit

Permalink
fix: crash on ios when no startingDate in options
Browse files Browse the repository at this point in the history
  • Loading branch information
quen09t authored Apr 11, 2018
1 parent 8ae93e5 commit 2ca31e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal-datetimepicker.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class ModalDatetimepicker {
) {
reject("startingDate must be a Date.");
}
else {
else if (options.startingDate) {
startingDate = options.startingDate;
}
} else {
Expand Down

0 comments on commit 2ca31e3

Please sign in to comment.