@zeniai/client-epic-state 4.13.77 → 4.13.78

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.
@@ -219,7 +219,13 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
219
219
  const { vendorId, selectedAccount, selectedClassBase, transactions, transactionId, lineId, selectedTab, } = action.payload;
220
220
  const transactionLocalData = (0, get_1.default)(draft[selectedTab].transactionReviewLocalDataById, transactionId, undefined);
221
221
  if (transactionLocalData != null) {
222
- const newTransactionLocalData = Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData), { lineItemById: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById), { [lineId]: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById[lineId]), { account: selectedAccount, class: selectedClassBase }) }) });
222
+ const newTransactionLocalData = Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData), { lineItemById: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById), { [lineId]: Object.assign(Object.assign({}, transactionLocalData.transactionReviewLocalData.lineItemById[lineId]), { account: selectedAccount != null
223
+ ? selectedAccount
224
+ : transactionLocalData.transactionReviewLocalData
225
+ .lineItemById[lineId].account, class: selectedClassBase != null
226
+ ? selectedClassBase
227
+ : transactionLocalData.transactionReviewLocalData
228
+ .lineItemById[lineId].class }) }) });
223
229
  draft[selectedTab].transactionReviewLocalDataById[transactionId] = {
224
230
  transactionReviewLocalData: newTransactionLocalData,
225
231
  transactionId,
@@ -19,7 +19,8 @@ const initializeIntlVerificationFormEpic = (actions$, state$) => actions$.pipe((
19
19
  if (values != null) {
20
20
  localData[formFieldKey] =
21
21
  internationalWireFormPayload[formFieldKey].type === 'enum'
22
- ? values.length === 1
22
+ ? internationalWireFormPayload[formFieldKey]
23
+ .is_multiple_values_allowed === false
23
24
  ? typeof values[0] === 'object' && 'code' in values[0]
24
25
  ? values[0].code
25
26
  : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.13.77",
3
+ "version": "4.13.78",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",