@websy/websy-designs 1.4.36 → 1.4.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1351,12 +1351,12 @@ class WebsyDatePicker {
1351
1351
  let start = list[0]
1352
1352
  let end = ''
1353
1353
  if (this.customRangeSelected === true && this.isContinuousRange === true) {
1354
- if (list.length > 0) {
1354
+ if (list.length > 1) {
1355
1355
  end = ` - ${list[list.length - 1]}`
1356
1356
  }
1357
1357
  if (this.options.mode === 'hour') {
1358
1358
  start = this.options.hours[start].text
1359
- if (list.length > 0) {
1359
+ if (list.length > 1) {
1360
1360
  end = `${this.customRangeSelected === true ? ' - ' : ''}${this.options.hours[list[list.length - 1]].text}`
1361
1361
  }
1362
1362
  }
@@ -1508,14 +1508,14 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1508
1508
  var end = '';
1509
1509
 
1510
1510
  if (this.customRangeSelected === true && this.isContinuousRange === true) {
1511
- if (list.length > 0) {
1511
+ if (list.length > 1) {
1512
1512
  end = " - ".concat(list[list.length - 1]);
1513
1513
  }
1514
1514
 
1515
1515
  if (this.options.mode === 'hour') {
1516
1516
  start = this.options.hours[start].text;
1517
1517
 
1518
- if (list.length > 0) {
1518
+ if (list.length > 1) {
1519
1519
  end = "".concat(this.customRangeSelected === true ? ' - ' : '').concat(this.options.hours[list[list.length - 1]].text);
1520
1520
  }
1521
1521
  }