Skip to content

Commit

Permalink
Also send error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvanderbyl authored and joshsmith committed Nov 10, 2017
1 parent f39551c commit 6320229
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/components/stripe-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
Expand Down

0 comments on commit 6320229

Please sign in to comment.