From 21875d1dd3ec1d0c82b11fc0f09a5c7f1ad66a4f Mon Sep 17 00:00:00 2001 From: David Walsh Date: Wed, 21 Oct 2020 12:55:03 -0500 Subject: [PATCH] Fix for tests --- .../send/send-content/add-recipient/ens-input.component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/pages/send/send-content/add-recipient/ens-input.component.js b/ui/app/pages/send/send-content/add-recipient/ens-input.component.js index acd953116..1af36fca6 100644 --- a/ui/app/pages/send/send-content/add-recipient/ens-input.component.js +++ b/ui/app/pages/send/send-content/add-recipient/ens-input.component.js @@ -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 }) }