diff --git a/ReactCommon/fabric/attributedstring/AttributedString.cpp b/ReactCommon/fabric/attributedstring/AttributedString.cpp index 974d214ea69..6bf2912e490 100644 --- a/ReactCommon/fabric/attributedstring/AttributedString.cpp +++ b/ReactCommon/fabric/attributedstring/AttributedString.cpp @@ -26,8 +26,8 @@ bool Fragment::isAttachment() const { } bool Fragment::operator==(const Fragment &rhs) const { - return std::tie(string, textAttributes, parentShadowView) == - std::tie(rhs.string, rhs.textAttributes, rhs.parentShadowView); + return std::tie(string, textAttributes, parentShadowView.tag) == + std::tie(rhs.string, rhs.textAttributes, rhs.parentShadowView.tag); } bool Fragment::operator!=(const Fragment &rhs) const {