orderiom-api-package 0.4.37 → 0.4.38

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": "orderiom-api-package",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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;
649
- const validTime = validation.validTime;
648
+ const name = validation.name[0];
649
+ const validTime = validation.validTime[0];
650
650
  delete validation.name;
651
651
  delete validation.validTime;
652
652
 
@@ -880,8 +880,8 @@ const actions = {
880
880
 
881
881
  const name = validation.name;
882
882
  const validTime = validation.validTime;
883
- delete validation.name;
884
- delete validation.validTime;
883
+ delete validation.name[0];
884
+ delete validation.validTime[0];
885
885
 
886
886
  return {
887
887
  type: 'error',