-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Clear old error message on session object when updating val…
…id submission data and pass previous value into React component tckt-363 Co-authored-by: Daniel Naab [email protected]
- Loading branch information
1 parent
31f98d3
commit a89b9df
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
type FormErrorType = 'required' | 'custom'; | ||
|
||
export type FormError = { | ||
type: FormErrorType; | ||
message?: string; | ||
}; | ||
export type FormError = | ||
| { | ||
type?: FormErrorType; | ||
message?: string; | ||
} | ||
| undefined; | ||
|
||
export type FormErrors = Record<string, FormError>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters