@@ -6,7 +6,7 @@ import HighchartsReact from 'highcharts-react-official'
66
77import { BaseModal } from '~/libs/ui'
88import {
9- MemberStats , UserProfile , UserStatsDistributionResponse , UserStatsHistory , useStatsDistribution , useStatsHistory ,
9+ MemberStats , ratingToCSScolor , UserProfile , UserStatsDistributionResponse , UserStatsHistory , useStatsDistribution , useStatsHistory ,
1010} from '~/libs/core'
1111
1212import { numberToFixed } from '../../lib'
@@ -47,7 +47,7 @@ const GenericSubtrackDetailsModal: FC<GenericSubtrackDetailsModalProps> = (props
4747 } )
4848
4949 const ratingDistributionOptions : Highcharts . Options | undefined
50- = useRatingDistroOptions ( memberStatsDist ?. distribution || { } , props . genericStats ?. rank . rating )
50+ = useRatingDistroOptions ( memberStatsDist ?. distribution || { } , props . genericStats ?. rank ? .rating )
5151
5252 return (
5353 < BaseModal
@@ -59,6 +59,15 @@ const GenericSubtrackDetailsModal: FC<GenericSubtrackDetailsModalProps> = (props
5959
6060 < div className = { styles . container } >
6161 < div className = 'member-stat-header' >
62+ < div >
63+ < span
64+ className = 'member-stat-value'
65+ style = { ratingToCSScolor ( props . genericStats ?. rank . rating || 0 ) }
66+ >
67+ { props . genericStats ?. rank . rating }
68+ </ span >
69+ Rating
70+ </ div >
6271 < div >
6372 < span className = 'member-stat-value' > { props . genericStats ?. wins } </ span >
6473 Wins
@@ -81,12 +90,12 @@ const GenericSubtrackDetailsModal: FC<GenericSubtrackDetailsModalProps> = (props
8190 </ span >
8291 Screening Success Rate
8392 </ div >
84- < div >
93+ { /* <div>
8594 <span className='member-stat-value'>
8695 {numberToFixed(props.genericStats?.avgPlacement || 0)}
8796 </span>
8897 Average Placement
89- </ div >
98+ </div> */ }
9099 </ div >
91100 < div className = { styles . content } >
92101 < div className = { styles . contentHeader } >
0 commit comments