From f686d869107dcf6507b11dc8767ffd08722f9111 Mon Sep 17 00:00:00 2001 From: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com> Date: Wed, 29 Jun 2022 20:25:12 +0800 Subject: [PATCH] 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 --- ui/component/fileReactions/view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/component/fileReactions/view.jsx b/ui/component/fileReactions/view.jsx index dac668856..5f4ac693f 100644 --- a/ui/component/fileReactions/view.jsx +++ b/ui/component/fileReactions/view.jsx @@ -57,7 +57,7 @@ export default function FileReactions(props: Props) {
> )} - {formatNumberWithCommas(likeCount, 0)} + {formatNumberWithCommas(likeCount, 0)} > ); @@ -70,7 +70,7 @@ export default function FileReactions(props: Props) { > )} - {formatNumberWithCommas(dislikeCount, 0)} + {formatNumberWithCommas(dislikeCount, 0)} > );