orderiom-api-package 0.4.38 → 0.4.40
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
package/src/messages/de-api.json
CHANGED
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"Please fill out this field": "Bitte füllen Sie dieses Feld aus",
|
|
135
135
|
|
|
136
136
|
"resources_have_been_reached": "Leider sind wir zu deiner gewählten Zeit sehr ausgelastet und können dein Essen nicht zubereiten. Möchtest du deine Zeit vielleicht auf {validTime} ändern?",
|
|
137
|
-
"
|
|
137
|
+
"this_product_is_not_available_for_your_selected_date": "Leider ist {name} für Ihr ausgewähltes Datum nicht verfügbar.",
|
|
138
138
|
"the_product_is_not_available": "Leider ist {name} nicht auf Lager",
|
|
139
139
|
|
|
140
140
|
"request_submitted": "Ihre Anfrage wurde übermittelt!",
|
package/src/messages/en-api.json
CHANGED
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"Please fill out this field": "Please fill out this field",
|
|
135
135
|
|
|
136
136
|
"resources_have_been_reached": "Unfortunately, we are very busy at your selected time and cannot prepare your food. Do you want to change your time to {validTime} maybe?",
|
|
137
|
-
"
|
|
137
|
+
"this_product_is_not_available_for_your_selected_date": "Unfortunately, {name} is not available for your selected date.",
|
|
138
138
|
"the_product_is_not_available": "Unfortunately, {name} is out of stock",
|
|
139
139
|
|
|
140
140
|
"request_submitted": "your request has been submitted!",
|
package/src/messages/fr-api.json
CHANGED
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"Please fill out this field": "Veuillez remplir ce champ",
|
|
135
135
|
|
|
136
136
|
"resources_have_been_reached": "Malheureusement, nous sommes très occupés à l'heure que vous avez choisie et ne pouvons pas préparer votre nourriture. Voulez-vous peut-être changer votre heure en {validTime}?",
|
|
137
|
-
"
|
|
137
|
+
"this_product_is_not_available_for_your_selected_date": "Malheureusement, {name} n'est pas disponible pour la date sélectionnée.",
|
|
138
138
|
"the_product_is_not_available": "Malheureusement, {name} est en rupture de stock",
|
|
139
139
|
|
|
140
140
|
"request_submitted": "votre demande a été soumise!",
|
package/src/modules/order.js
CHANGED
|
@@ -645,8 +645,8 @@ const actions = {
|
|
|
645
645
|
if (status === 422) {
|
|
646
646
|
const validation = error.response.data.error.validation;
|
|
647
647
|
|
|
648
|
-
const name = validation.name[0];
|
|
649
|
-
const validTime = validation.validTime[0];
|
|
648
|
+
const name = validation.name?.length ? validation.name[0] : 'N/A';
|
|
649
|
+
const validTime = validation.validTime?.length ? validation.validTime[0] : 'N/A';
|
|
650
650
|
delete validation.name;
|
|
651
651
|
delete validation.validTime;
|
|
652
652
|
|
|
@@ -878,10 +878,10 @@ const actions = {
|
|
|
878
878
|
if (status === 422) {
|
|
879
879
|
const validation = error.response.data.error.validation;
|
|
880
880
|
|
|
881
|
-
const name = validation.name;
|
|
882
|
-
const validTime = validation.validTime;
|
|
883
|
-
delete validation.name
|
|
884
|
-
delete validation.validTime
|
|
881
|
+
const name = validation.name?.length ? validation.name[0] : 'N/A';
|
|
882
|
+
const validTime = validation.validTime?.length ? validation.validTime[0] : 'N/A';
|
|
883
|
+
delete validation.name;
|
|
884
|
+
delete validation.validTime;
|
|
885
885
|
|
|
886
886
|
return {
|
|
887
887
|
type: 'error',
|