mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01: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]
|
||
|
}
|