Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Add additional error and warning state in withCharacterCount payload (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
juliewongbandue authored May 25, 2022
1 parent 068ae52 commit c356818
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ export function reducer(state, { type, payload = null }) {
return {
...state,
error: payload,
warning: false,
};
case 'SET_WARNING':
return {
...state,
warning: payload,
error: false,
};
case 'SET_REMAINING_CHARACTERS':
return {
Expand Down

0 comments on commit c356818

Please sign in to comment.