@open-tender/cloud 0.1.7 → 0.1.8

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.
@@ -153,8 +153,7 @@ exports.updateCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.Updat
153
153
  }
154
154
  catch (err) {
155
155
  const error = err;
156
- const errors = (0, utils_1.makeFormErrors)(err);
157
- return (0, exports.checkAuth)(error, dispatch, () => rejectWithValue(errors));
156
+ return (0, exports.checkAuth)(error, dispatch, () => rejectWithValue(error));
158
157
  }
159
158
  }));
160
159
  exports.sendCustomerVerificationEmail = (0, toolkit_1.createAsyncThunk)(AccountActionType.VerifyCustomer, (linkUrl, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
@@ -2,7 +2,7 @@ import { __awaiter } from "tslib";
2
2
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
3
3
  import { ReducerType } from '../types';
4
4
  import { MISSING_CUSTOMER, MISSING_CUSTOMER_TOKEN } from '@open-tender/types';
5
- import { makeCustomerProfile, makeFavoritesLookup, makeFormErrors } from '@open-tender/utils';
5
+ import { makeCustomerProfile, makeFavoritesLookup } from '@open-tender/utils';
6
6
  import { showNotification } from '../notifications';
7
7
  import { resetCustomerAllergens, setCustomerAllergens } from './allergens';
8
8
  import { setSelectedAllergens } from '../allergens';
@@ -148,8 +148,7 @@ export const updateCustomer = createAsyncThunk(AccountActionType.UpdateCustomer,
148
148
  }
149
149
  catch (err) {
150
150
  const error = err;
151
- const errors = makeFormErrors(err);
152
- return checkAuth(error, dispatch, () => rejectWithValue(errors));
151
+ return checkAuth(error, dispatch, () => rejectWithValue(error));
153
152
  }
154
153
  }));
155
154
  export const sendCustomerVerificationEmail = createAsyncThunk(AccountActionType.VerifyCustomer, (linkUrl, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",