@viur/shop-components 0.9.4 → 0.9.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -82,7 +82,7 @@ const state = reactive({
82
82
  paymentHandler:{},
83
83
  loading:false,
84
84
  hasError:false,
85
- errorMessage:"Bei der Zahlung ist ein Fehler aufgetreten.",
85
+ errorMessage: null,
86
86
  waitPayment:false
87
87
  })
88
88
 
@@ -138,6 +138,7 @@ function paymentError(error){
138
138
  console.error(error)
139
139
  state.loading = false
140
140
  state.hasError = true
141
+ state.errorMessage = error.customerMessage || error.message || error || 'Error';
141
142
  }
142
143
 
143
144