@@ -97,11 +97,11 @@ const StyledLinearProgress = styled(LinearProgress)(({ theme }) => ({
97
97
} ) )
98
98
99
99
function Content ( ) {
100
+ const { classes, cx } = useStyles ( )
100
101
const identifier = useContext ( SnapshotContext )
101
102
const proposal = useProposal ( identifier . id )
102
103
const votes = useVotes ( identifier )
103
104
const { results } = useResults ( identifier , proposal )
104
- const { classes, cx } = useStyles ( )
105
105
106
106
const dataForCsv = useMemo ( ( ) => {
107
107
if ( ! isArray ( votes ) ) return EMPTY_LIST
@@ -144,11 +144,7 @@ function Content() {
144
144
< Typography className = { classes . ellipsisText } >
145
145
{ result . powerDetail
146
146
. flatMap ( ( detail , index ) => {
147
- const name = formatCount (
148
- proposal . scores_by_strategy [ i ] [ index ] ,
149
- 2 ,
150
- true ,
151
- )
147
+ const name = formatCount ( result . power , 2 , true )
152
148
return [ index === 0 ? '' : '+' , name , detail . name ]
153
149
} )
154
150
. join ( ' ' ) }
@@ -157,7 +153,7 @@ function Content() {
157
153
placement = "top"
158
154
arrow >
159
155
< Typography className = { classes . power } >
160
- { formatCount ( proposal . scores [ i ] , 2 , true ) }
156
+ { formatCount ( result . power , 2 , true ) }
161
157
</ Typography >
162
158
</ ShadowRootTooltip >
163
159
< Typography className = { classes . ratio } >
0 commit comments