From 49ce74282ac88c2f755d188873e04c812ffe3ee6 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Tue, 27 Feb 2024 09:29:57 +0100 Subject: [PATCH] chore: missing code replication Perhaps it would make sense to refactor this.. --- js/src/forum/components/Poll/PollResult.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/forum/components/Poll/PollResult.tsx b/js/src/forum/components/Poll/PollResult.tsx index 0839aac3..fbe3e1d3 100644 --- a/js/src/forum/components/Poll/PollResult.tsx +++ b/js/src/forum/components/Poll/PollResult.tsx @@ -9,6 +9,7 @@ import abbreviateNumber from 'flarum/common/utils/abbreviateNumber'; interface PollResultsAttrs extends ComponentAttrs { option: PollOptionModel; + name: String; state: PollState; } @@ -25,10 +26,10 @@ export default class PollResults extends Component { return (