🐛 corrige la page blanche lorsque l'on saisi une valeur faible dans les simulateurs
parent
2c561842be
commit
eea72da1bb
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue