@sprucelabs/spruce-people-utils 3.0.0 → 3.0.2

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.
@@ -91,7 +91,7 @@ export default class InvitePersonCardViewController extends AbstractViewControll
91
91
  return __awaiter(this, void 0, void 0, function* () {
92
92
  this.updateHeader();
93
93
  this.updateFooter();
94
- yield this.updateTalkingSprucebot();
94
+ void this.updateTalkingSprucebot();
95
95
  });
96
96
  }
97
97
  updateTalkingSprucebot() {
@@ -40,10 +40,10 @@ export default class PersonSelectInputViewController extends AbstractViewControl
40
40
  }
41
41
  handleOnChangeRenderedValue(value) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- if (!this.shouldIgnoreNextChange && value.length > 2) {
43
+ if (!this.shouldIgnoreNextChange && value && value.length > 2) {
44
44
  yield this.populateSuggestions(value);
45
45
  }
46
- if (value.length === 0) {
46
+ if (!value || value.length === 0) {
47
47
  yield this.setValue(null);
48
48
  }
49
49
  this.shouldIgnoreNextChange = false;
@@ -83,7 +83,7 @@ class InvitePersonCardViewController extends heartwood_view_controllers_1.Abstra
83
83
  async handleSlideChange() {
84
84
  this.updateHeader();
85
85
  this.updateFooter();
86
- await this.updateTalkingSprucebot();
86
+ void this.updateTalkingSprucebot();
87
87
  }
88
88
  async updateTalkingSprucebot() {
89
89
  const name = this.formVc.getValue('firstName');
@@ -56,10 +56,10 @@ class PersonSelectInputViewController extends heartwood_view_controllers_1.Abstr
56
56
  };
57
57
  }
58
58
  async handleOnChangeRenderedValue(value) {
59
- if (!this.shouldIgnoreNextChange && value.length > 2) {
59
+ if (!this.shouldIgnoreNextChange && value && value.length > 2) {
60
60
  await this.populateSuggestions(value);
61
61
  }
62
- if (value.length === 0) {
62
+ if (!value || value.length === 0) {
63
63
  await this.setValue(null);
64
64
  }
65
65
  this.shouldIgnoreNextChange = false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-people-utils",
3
3
  "description": "People Utilities",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "skill": {
6
6
  "namespace": "invite"
7
7
  },