mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-30 05:41:41 +02:00
7 lines
188 B
TypeScript
7 lines
188 B
TypeScript
|
export function getFieldContent(
|
||
|
fieldName: string,
|
||
|
fields: FormFieldContent[]
|
||
|
): FormFieldContent {
|
||
|
return fields.filter((field: FormFieldContent) => field.name === fieldName)[0]
|
||
|
}
|