diff --git a/packages/opc-feedback/package-lock.json b/packages/opc-feedback/package-lock.json index e697ba3e..b8cacaf0 100644 --- a/packages/opc-feedback/package-lock.json +++ b/packages/opc-feedback/package-lock.json @@ -1,6 +1,6 @@ { "name": "@one-platform/opc-feedback", - "version": "0.1.0-alpha", + "version": "0.1.1-alpha", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/opc-feedback/package.json b/packages/opc-feedback/package.json index 118dc12c..f52dbe8f 100644 --- a/packages/opc-feedback/package.json +++ b/packages/opc-feedback/package.json @@ -1,6 +1,6 @@ { "name": "@one-platform/opc-feedback", - "version": "0.1.0-alpha", + "version": "0.1.1-alpha", "description": "opc-feedback component follows the One Platform design system and can be used as a popup to collect feedback from the end-users.", "scripts": { "dev": "webpack serve", diff --git a/packages/opc-feedback/src/opc-feedback.ts b/packages/opc-feedback/src/opc-feedback.ts index a3d02053..a27189c1 100644 --- a/packages/opc-feedback/src/opc-feedback.ts +++ b/packages/opc-feedback/src/opc-feedback.ts @@ -123,9 +123,13 @@ export class OpcFeedback extends LitElement { }, }); this.dispatchEvent(event); - await this.onSubmit?.(event); - this._resetForm(); - this._setModalState(false, false, false, !this._openConfirmationModal); + try { + await this.onSubmit?.(event); + this._resetForm(); + this._setModalState(false, false, false, !this._openConfirmationModal); + } catch (err) { + console.error(err); + } } toggle() {