1
0
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:
slowbackspace 2019-03-29 10:40:25 +01:00
parent d9e03c898a
commit f60ddec70f

View File

@ -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 {