FileReactions: make it robust against external DOM manipulation (#1772)

## Issue
Crash when reacting while Google Translate is active.

https://github.com/facebook/react/issues/11538#issuecomment-390386520
This commit is contained in:
infinite-persistence 2022-06-29 20:25:12 +08:00 committed by GitHub
parent 4b1bf22154
commit f686d86910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ export default function FileReactions(props: Props) {
<div className="button__fire-particle6" /> <div className="button__fire-particle6" />
</> </>
)} )}
{formatNumberWithCommas(likeCount, 0)} <span>{formatNumberWithCommas(likeCount, 0)}</span>
</> </>
); );
@ -70,7 +70,7 @@ export default function FileReactions(props: Props) {
<div className="button__slime-drop2" /> <div className="button__slime-drop2" />
</> </>
)} )}
{formatNumberWithCommas(dislikeCount, 0)} <span>{formatNumberWithCommas(dislikeCount, 0)}</span>
</> </>
); );