mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
4 lines
146 B
TypeScript
4 lines
146 B
TypeScript
export default function getErrorMessage(error: Record<string, Array<string>> | undefined, field: string) {
|
|
return error?.[field]?.join(', ');
|
|
}
|