Skip to content

Commit

Permalink
bump npm versions of stuff, dispatch error events
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Sep 16, 2023
1 parent bb14bfb commit 3c1b08e
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 403 deletions.
2 changes: 1 addition & 1 deletion assets/js/launch-cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const formatPrice = (price) => {
},
events: {
send: ['checkout', 'remove_cart_item', 'increase_quantity', 'decrease_quantity'],
receive: ['checkout_redirect', 'cart_created', 'checkout_complete']
receive: ['checkout_redirect', 'cart_created', 'checkout_complete', 'livestate-error']
}
})
export class LaunchCartElement extends LitElement {
Expand Down
3 changes: 2 additions & 1 deletion assets/js/launch-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { liveState, liveStateConfig } from 'phx-live-state';
name: 'launchFormState'
},
events: {
send: ['launch-form-submit']
send: ['launch-form-submit'],
receive: ['livestate-error']
}
})
export class LaunchFormElement extends LitElement {
Expand Down
Loading

0 comments on commit 3c1b08e

Please sign in to comment.