Skip to content

Commit

Permalink
Merge pull request #17 from quen09t/patch-1
Browse files Browse the repository at this point in the history
fix: crash on ios when no startingDate in options
  • Loading branch information
shiv19 authored Apr 12, 2018
2 parents 8ae93e5 + 2ca31e3 commit 1dfc4fc
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 1dfc4fc

Please sign in to comment.