🐛 corrige la page blanche lorsque l'on saisi une valeur faible dans les simulateurs

pull/596/head
Johan Girod 2019-07-03 19:14:31 +02:00
parent 2c561842be
commit eea72da1bb
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ export default withLanguage(
state = { difference: 0 }
componentDidUpdate(prevProps) {
if (prevProps.value === this.props.value) {
if (
prevProps.value === this.props.value ||
Number.isNaN(this.props.value)
) {
return
}
this.setState({