File tree Expand file tree Collapse file tree
client/src/components/leaderboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,21 +45,21 @@ export default function MegaChart() {
4545
4646 guilds ?. forEach ( ( guild : any ) => {
4747 guild . image = new Image ( ) ;
48- guild . image . src = `/${ guild . guild_name } /icon.png ` ;
48+ guild . image . src = `/guilds/ ${ guild . guild_slug } /icon.svg ` ;
4949 if ( guild . points > largestPoints ) {
5050 largestPoints = guild . points ;
5151 }
5252 } ) ;
5353
5454 const guildDisplayNames = new Map ( [
55- [ "Centre of the Earth " , "CotE " ] ,
56- [ "Atlantis " , "Atlantis " ] ,
57- [ "Moon " , "Moon " ] ,
58- [ "Mysterious Island " , "MI " ] ,
55+ [ "ember " , "E " ] ,
56+ [ "hydro " , "H " ] ,
57+ [ "solaris " , "S " ] ,
58+ [ "zephyr " , "Z " ] ,
5959 ] )
6060
6161 const dataset = {
62- labels : guilds ?. map ( ( team : any ) => guildDisplayNames . get ( team . guild_name ) ) ,
62+ labels : guilds ?. map ( ( team : any ) => guildDisplayNames . get ( team . guild_slug ) ) ,
6363 datasets : [
6464 {
6565 label : "Points" ,
You can’t perform that action at this time.
0 commit comments