Fix msg field for commission

This commit is contained in:
abefernan 2024-07-31 16:57:44 +02:00
parent 31c6fd6c5c
commit c230ec9d3a
No known key found for this signature in database

View File

@ -4,7 +4,7 @@ import { prettyFieldName } from "@/lib/form";
import * as z from "zod";
import type { FieldProps } from "./types";
const isFieldCommission = (fieldName: string) => fieldName === "inputs" || fieldName === "outputs";
const isFieldCommission = (fieldName: string) => fieldName === "commission";
export const getFieldCommission = (fieldName: string) =>
isFieldCommission(fieldName) ? FieldCommission : null;