From d26b58de295bd72c589d4260ca85bfabb563e090 Mon Sep 17 00:00:00 2001 From: meriadec Date: Wed, 7 Feb 2018 14:27:14 +0100 Subject: [PATCH] Fix IsUnlocked shouldComponentUpdate --- src/components/{IsUnlocked/index.js => IsUnlocked.js} | 4 ++++ 1 file changed, 4 insertions(+) rename src/components/{IsUnlocked/index.js => IsUnlocked.js} (97%) diff --git a/src/components/IsUnlocked/index.js b/src/components/IsUnlocked.js similarity index 97% rename from src/components/IsUnlocked/index.js rename to src/components/IsUnlocked.js index 13e21ba4..36336fcb 100644 --- a/src/components/IsUnlocked/index.js +++ b/src/components/IsUnlocked.js @@ -81,6 +81,10 @@ class IsUnlocked extends Component { return true } + if (!nextProps.isLocked && this.props.isLocked) { + return true + } + return nextProps.children !== this.props.children }