Skip to content

Commit

Permalink
Review feedback. Set state to empty on init and add ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 13, 2020
1 parent eafe4b9 commit 13f4d45
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ export class ValidatedDualRange extends Component<Props> {
return null;
}

state: State = {
value: ['0', '0'],
};
// @ts-ignore state populated by getDerivedStateFromProps
state: State = {};

_onChange = (value: Value) => {
const { isValid, errorMessage } = isRangeValid(
Expand Down

0 comments on commit 13f4d45

Please sign in to comment.