fix link to chickendinner
This commit is contained in:
@ -67,6 +67,10 @@ function getChickenDinnerUrl(asset: Asset, player: PlayerResponse['data'][0]) {
|
||||
return `https://chickendinner.gg/${url}?follow=${player.attributes.name}`;
|
||||
}
|
||||
|
||||
function getChickenDinnerUrlv2(matchId: string, player: PlayerResponse['data'][0]) {
|
||||
return `https://chickendinner.gg/${matchId}/${player.attributes.name}`;
|
||||
}
|
||||
|
||||
function getRank(match: MatchResponse, playerId: string) {
|
||||
for (const player of match.included) {
|
||||
if (player.type === 'participant' && player.attributes.stats.playerId === playerId) {
|
||||
@ -118,7 +122,7 @@ li a { padding: 0 5px; }
|
||||
<li>Links:
|
||||
<a href={`/match/${match.id}`}>Raw</a>
|
||||
<a href={`https://pubglookup.com/players/steam/${player.attributes.name.toLowerCase()}/matches/${match.id}`}>PUBGLookup</a>
|
||||
<a href={getChickenDinnerUrl(telemetry, player)}>map replay</a>
|
||||
<a href={getChickenDinnerUrlv2(match.id, player)}>map replay</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user