orderiom-api-package 0.3.10 → 0.3.11

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.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -581,7 +581,7 @@ const actions = {
581
581
  return axios
582
582
  .post("api/basket/add-delivery-time", {
583
583
  ...basketId,
584
- delivery_time: data.date + " " + data.time,
584
+ delivery_time: data.date && data.time ? data.date + " " + data.time : null,
585
585
  restaurantId: data.restaurantId,
586
586
  deliveryType: data.deliveryType
587
587