diff --git a/addon/components/stripe-element.js b/addon/components/stripe-element.js index 5d642c8..53eaffb 100644 --- a/addon/components/stripe-element.js +++ b/addon/components/stripe-element.js @@ -78,8 +78,10 @@ export default Component.extend({ set(this, 'error', error); this.sendAction('change', stripeElement, ...args); - if (complete === true) { + if (complete) { this.sendAction('complete', stripeElement); + } else if (error) { + this.sendAction('error', error); } }); }