mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-22 14:00:58 +00:00
reset errors for the input even if it was not touched before
This commit is contained in:
parent
d9e03c898a
commit
f60ddec70f
@ -57,6 +57,8 @@ export default (state: State = initialState, action: Action): State => {
|
||||
return {
|
||||
...state,
|
||||
touched: [...state.touched, action.inputName],
|
||||
// reset errors for the input even if it was not touched before
|
||||
errors: state.errors.filter(error => error.inputName !== inputName),
|
||||
};
|
||||
}
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user