Skip to content

Commit 2ef65ff

Browse files
committed
correct logic for date warning
1 parent b27e906 commit 2ef65ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/examples/src/flight-booker/App/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
},
3232
canBook() {
3333
return (
34-
this.isReturn ||
34+
!this.isReturn ||
3535
stringToDate(this.returnDate) > stringToDate(this.departureDate)
3636
)
3737
}

0 commit comments

Comments
 (0)