Skip to content

Commit 38c3b31

Browse files
committed
MAGETWO-53299: "Go Today" button is not working for dates range component
- condition refactored according to CR comment
1 parent bfac129 commit 38c3b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// local time in ms
4141
var ms = Date.now();
4242

43-
options = options || ($.calendarConfig ? $.calendarConfig : {});
43+
options = options || $.calendarConfig || {};
4444

4545
// Adjust milliseconds according to store timezone offset,
4646
// mind the GMT zero offset

0 commit comments

Comments
 (0)