1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-28 00:40:29 +00:00

fix: != -> !==

This commit is contained in:
Richard Ramos 2019-08-14 11:37:38 -04:00 committed by Andy Tudhope
parent 5e13d419a7
commit b050034338

View File

@ -31,7 +31,7 @@ class Withdraw extends React.Component {
if ( if (
(!prevProps.withdrawMax && this.props.withdrawMax) || (!prevProps.withdrawMax && this.props.withdrawMax) ||
(this.props.withdrawMax && (this.props.withdrawMax &&
prevProps.withdrawMax != this.props.withdrawMax) prevProps.withdrawMax !== this.props.withdrawMax)
) { ) {
this.setState({ withdrawAmount: this.props.withdrawMax }) this.setState({ withdrawAmount: this.props.withdrawMax })
} }