Skip to content

Commit

Permalink
fix: wrong state key being used
Browse files Browse the repository at this point in the history
rename to warnings instead of warning
  • Loading branch information
James Duffy committed Jul 30, 2021
1 parent b853174 commit f77c733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/JustNotSorry.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JustNotSorry extends Component {
this.setState(({ parentNode }) =>
parentNode.id !== email.parentNode.id
? { parentNode: email.parentNode, warnings: newWarnings }
: { parentNode, warning: newWarnings }
: { parentNode, warnings: newWarnings }
);
this.setState({ parentNode: email.parentNode, warnings: newWarnings });
}
Expand Down

0 comments on commit f77c733

Please sign in to comment.