1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Fix for tests

This commit is contained in:
David Walsh 2020-10-21 12:55:03 -05:00
parent 4892a3e0e1
commit 21875d1dd3

View File

@ -63,8 +63,8 @@ export default class EnsInput extends Component {
value,
} = this.props
// Update the value in state if its prop value changes
if (input !== value) {
// Set the value of our input based on QR code provided by parent
if (input !== value && prevProps.value != value) {
this.setState({ input: value })
}