From 5fe691cf339c0c92c8d4258eb0cfea8b10834805 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 15 Aug 2019 13:33:02 -0600 Subject: [PATCH] Double equals --- src/components/views/elements/Field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/Field.js b/src/components/views/elements/Field.js index 9c248a81d8..2d9ef27edd 100644 --- a/src/components/views/elements/Field.js +++ b/src/components/views/elements/Field.js @@ -161,7 +161,7 @@ export default class Field extends React.PureComponent { prefixContainer = {prefix}; } - const hasValidationFlag = flagInvalid != null && flagInvalid !== undefined; + const hasValidationFlag = flagInvalid !== null && flagInvalid !== undefined; const fieldClasses = classNames("mx_Field", `mx_Field_${inputElement}`, { // If we have a prefix element, leave the label always at the top left and // don't animate it, as it looks a bit clunky and would add complexity to do