diff --git a/ReactCommon/fabric/attributedstring/AttributedString.cpp b/ReactCommon/fabric/attributedstring/AttributedString.cpp index 630fb98f537..e2b31345016 100644 --- a/ReactCommon/fabric/attributedstring/AttributedString.cpp +++ b/ReactCommon/fabric/attributedstring/AttributedString.cpp @@ -73,7 +73,7 @@ std::string AttributedString::getString() const { } bool AttributedString::operator==(const AttributedString &rhs) const { - return fragments_ != rhs.fragments_; + return fragments_ == rhs.fragments_; } bool AttributedString::operator!=(const AttributedString &rhs) const {