@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.
@@ -1153,12 +1153,12 @@ class WebsyDatePicker {
1153
1153
  let start = list[0]
1154
1154
  let end = ''
1155
1155
  if (this.customRangeSelected === true && this.isContinuousRange === true) {
1156
- if (list.length > 0) {
1156
+ if (list.length > 1) {
1157
1157
  end = ` - ${list[list.length - 1]}`
1158
1158
  }
1159
1159
  if (this.options.mode === 'hour') {
1160
1160
  start = this.options.hours[start].text
1161
- if (list.length > 0) {
1161
+ if (list.length > 1) {
1162
1162
  end = `${this.customRangeSelected === true ? ' - ' : ''}${this.options.hours[list[list.length - 1]].text}`
1163
1163
  }
1164
1164
  }
@@ -1273,14 +1273,14 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1273
1273
  var end = '';
1274
1274
 
1275
1275
  if (this.customRangeSelected === true && this.isContinuousRange === true) {
1276
- if (list.length > 0) {
1276
+ if (list.length > 1) {
1277
1277
  end = " - ".concat(list[list.length - 1]);
1278
1278
  }
1279
1279
 
1280
1280
  if (this.options.mode === 'hour') {
1281
1281
  start = this.options.hours[start].text;
1282
1282
 
1283
- if (list.length > 0) {
1283
+ if (list.length > 1) {
1284
1284
  end = "".concat(this.customRangeSelected === true ? ' - ' : '').concat(this.options.hours[list[list.length - 1]].text);
1285
1285
  }
1286
1286
  }