Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AmmarHalees committed Dec 24, 2023
1 parent 23d84c3 commit 228baba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/validateForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { validateField } from "./validateField";
export function validateForm(data: FormDataShape, NameRuleMap: NameRuleMap) {
const errors: Array<FieldError> = [];

/*-------- Error Guards --------*/

try {
/*-------- Error Guards --------*/

if (!NameRuleMap) throw new RequiredParamError("NameRuleMap is required");
if (!data) throw new RequiredParamError("data is required");
if (!_utils.isObject(data))
Expand Down

0 comments on commit 228baba

Please sign in to comment.