File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
web/src/pages/Dashboard/JurorInfo Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,10 @@ const levelTitles = [
2929const Coherency : React . FC = ( ) => {
3030 const { address } = useAccount ( ) ;
3131 const { data } = useUserQuery ( address ?. toLowerCase ( ) ) ;
32- const totalCoherent = parseInt ( data ?. user ?. totalCoherent ) ?? 0 ;
33- const totalResolvedDisputes = parseInt ( data ?. user ?. totalResolvedDisputes ) ?? 1 ;
32+ const totalCoherent = data ?. user ? parseInt ( data ?. user ?. totalCoherent ) : 0 ;
33+ const totalResolvedDisputes = data ?. user ? parseInt ( data ?. user ?. totalResolvedDisputes ) : 1 ;
3434 const coherencyScore = calculateCoherencyScore ( totalCoherent , totalResolvedDisputes ) ;
3535 const roundedCoherencyScore = Math . round ( coherencyScore * 100 ) ;
36-
3736 const { level, title } =
3837 levelTitles . find ( ( { scoreRange } ) => {
3938 return roundedCoherencyScore >= scoreRange [ 0 ] && roundedCoherencyScore < scoreRange [ 1 ] ;
You can’t perform that action at this time.
0 commit comments