@websy/websy-designs 1.2.15 → 1.2.16

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.
@@ -1019,7 +1019,9 @@ class WebsyDatePicker {
1019
1019
  end = ` - ${list[list.length - 1]}`
1020
1020
  }
1021
1021
  else {
1022
- start = `${list.length} selected`
1022
+ if (list.length > 1) {
1023
+ start = `${list.length} selected`
1024
+ }
1023
1025
  }
1024
1026
  if (this.options.mode === 'hour') {
1025
1027
  start = this.options.hours[start].text
@@ -1128,7 +1128,9 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1128
1128
  if (this.customRangeSelected === true) {
1129
1129
  end = " - ".concat(list[list.length - 1]);
1130
1130
  } else {
1131
- start = "".concat(list.length, " selected");
1131
+ if (list.length > 1) {
1132
+ start = "".concat(list.length, " selected");
1133
+ }
1132
1134
  }
1133
1135
 
1134
1136
  if (this.options.mode === 'hour') {