@zeniai/client-epic-state 5.0.31-betaAR7 → 5.0.31-betaAR9

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.
@@ -346,15 +346,13 @@ const getCategoryValueForTransaction = (key, transaction) => {
346
346
  return transaction.transaction.account?.accountName;
347
347
  }
348
348
  case 'payment_account_type': {
349
- // Match the value the row renders: TransactionCategorizationListRow reads
350
- // `currentTransaction?.paymentTypeName` for the Payment Type column
351
- // (e.g. "Credit Card", "Check"). NOTE: the Payment Account Type filter
352
- // dropdown options are currently derived from raw `account.accountType`
353
- // values (e.g. "credit_card", "bank") in
354
- // `ExpenseAutomationPage.filterOptions`. With this matcher change, the
355
- // dropdown options must be aligned to also emit `paymentTypeName` values,
356
- // otherwise the filter will silently match nothing.
357
- return transaction.transaction.paymentTypeName;
349
+ // Compare against the raw `paymentType` enum (e.g. "credit_card", "check",
350
+ // "cash"). The same enum is what TransactionCategorizationListRow uses for
351
+ // its icon switch on line ~1675, and it's what the dropdown options emit
352
+ // as `value`. Display labels come from each account's `paymentTypeName`
353
+ // field (populated by mapAccountBasePayloadToAccountBase from the backend
354
+ // payload) no client-side label map required.
355
+ return transaction.transaction.paymentType;
358
356
  }
359
357
  case 'category': {
360
358
  // Get from transactionLocalData (preferred) or from transaction lines
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.31-betaAR7",
3
+ "version": "5.0.31-betaAR9",
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
  "module": "lib/esm/index.js",