@@ -62,8 +62,13 @@ const IsContest = ({title, isDarkTile = true, contestData, sponsorUrl, sponsorIm
62
62
const [ contestTimelineObject , setContestTimelineObject ] = useState < ContestSchedule | undefined > ( ) ;
63
63
const [ hasBotRace , setHasBotRace ] = useState ( contestData ? ! ! contestData . botFindingsRepo : false ) ;
64
64
let ecosystemLogoName : string = "" ;
65
- if ( ecosystem && ( ecosystem === "Polkadot" || ecosystem === "Ethereum" ) ) {
66
- ecosystemLogoName = `logo-${ ecosystem . toLowerCase ( ) } `
65
+ const evmTypes = new Set ( [
66
+ "EVM" , "Ethereum" , "Arbitrum" , "Avax" , "BSC" , "Optimism" , "Polygon" , "zkSync"
67
+ ] ) ;
68
+ if ( ecosystem && ( ecosystem === "Polkadot" ) ) {
69
+ ecosystemLogoName = 'logo-polkadot'
70
+ } else if ( evmTypes . has ( ecosystem ?? "" ) ) {
71
+ ecosystemLogoName = 'logo-ethereum' ;
67
72
}
68
73
69
74
const updateContestTileStatus = useCallback ( ( ) => {
@@ -188,8 +193,13 @@ const IsBounty = ({title, isDarkTile = true, bountyData, sponsorUrl, sponsorImag
188
193
} ) => {
189
194
const { amount, bountyUrl, ecosystem, languages } = bountyData ;
190
195
let ecosystemLogoName : string = "" ;
191
- if ( ecosystem && ( ecosystem === "Polkadot" || ecosystem === "Ethereum" ) ) {
192
- ecosystemLogoName = `logo-${ ecosystem . toLowerCase ( ) } `
196
+ const evmTypes = new Set ( [
197
+ "EVM" , "Ethereum" , "Arbitrum" , "Avax" , "BSC" , "Optimism" , "Polygon" , "zkSync"
198
+ ] ) ;
199
+ if ( ecosystem && ( ecosystem === "Polkadot" ) ) {
200
+ ecosystemLogoName = 'logo-polkadot'
201
+ } else if ( evmTypes . has ( ecosystem ?? "" ) ) {
202
+ ecosystemLogoName = 'logo-ethereum' ;
193
203
}
194
204
195
205
return (
0 commit comments