From 068b186cd69e4d635e3b2f693abab35b52bf3982 Mon Sep 17 00:00:00 2001 From: Ryan Bennett Date: Fri, 1 Nov 2024 14:03:19 -0700 Subject: [PATCH] fallback --- .../ThreadCard/ThreadOptions/ReactionButton/ReactionButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/commonwealth/client/scripts/views/pages/discussions/ThreadCard/ThreadOptions/ReactionButton/ReactionButton.tsx b/packages/commonwealth/client/scripts/views/pages/discussions/ThreadCard/ThreadOptions/ReactionButton/ReactionButton.tsx index 2d7e65d6bd2..bc944f3da94 100644 --- a/packages/commonwealth/client/scripts/views/pages/discussions/ThreadCard/ThreadOptions/ReactionButton/ReactionButton.tsx +++ b/packages/commonwealth/client/scripts/views/pages/discussions/ThreadCard/ThreadOptions/ReactionButton/ReactionButton.tsx @@ -45,7 +45,7 @@ export const ReactionButton = ({ const user = useUserStore(); const reactionWeightsSum = - BigInt(thread?.reactionWeightsSum) > 0 + BigInt(thread?.reactionWeightsSum || 0) > 0 ? thread?.reactionWeightsSum : thread?.reactionCount?.toString() || '0';