braid-ui 1.0.58 → 1.0.60

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/dist/index.cjs CHANGED
@@ -8811,7 +8811,7 @@ var NewTransactionView = ({
8811
8811
  FormInput,
8812
8812
  {
8813
8813
  name: "description",
8814
- label: "Description (Optional)",
8814
+ label: "Description",
8815
8815
  placeholder: "Enter transaction description",
8816
8816
  disabled: requiresCounterparty ? !counterpartyLookedUp : isTransfer ? !receiverAccountLookedUp : !transactionType
8817
8817
  }
@@ -14380,7 +14380,7 @@ var newTransactionSchema = zod.z.object({
14380
14380
  accountNumber: zod.z.string().min(1, "Account number is required"),
14381
14381
  counterpartyName: zod.z.string().optional(),
14382
14382
  amount: zod.z.string().min(1, "Amount is required"),
14383
- description: zod.z.string().optional(),
14383
+ description: zod.z.string().min(1, "Description is required"),
14384
14384
  certifyInformation: zod.z.boolean().refine((val) => val === true, {
14385
14385
  message: "You must certify the information is correct"
14386
14386
  }),
@@ -14797,7 +14797,7 @@ function NewTransaction() {
14797
14797
  const isReviewReady = React15.useMemo(() => {
14798
14798
  const data = form.watch();
14799
14799
  const requiresCounterparty = ["ach", "wire"].includes(data.transactionType);
14800
- if (!data.transactionType || !data.accountNumber || !data.amount) return false;
14800
+ if (!data.transactionType || !data.accountNumber || !data.amount || !data.description) return false;
14801
14801
  if (requiresCounterparty && (!data.counterpartyName || !counterpartyLookedUp)) return false;
14802
14802
  if (!accountLookedUp) return false;
14803
14803
  if (data.transactionType === "adjustment") {