mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
lint again
This commit is contained in:
parent
2cac5f05a1
commit
ef09ff6615
@ -75,7 +75,7 @@ export interface IValidationResult {
|
||||
* the overall validity and a feedback UI that can be rendered for more detail.
|
||||
*/
|
||||
export default function withValidation<T = undefined, D = void>({
|
||||
description, hideDescriptionIfValid, deriveData, rules
|
||||
description, hideDescriptionIfValid, deriveData, rules,
|
||||
}: IArgs<T, D>) {
|
||||
return async function onValidate({ value, focused, allowEmpty = true }: IFieldState): Promise<IValidationResult> {
|
||||
if (!value && allowEmpty) {
|
||||
|
Loading…
Reference in New Issue
Block a user