mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
Fix: summonerNames with spaces now work
This commit is contained in:
parent
7aaf8aa248
commit
f366e20b22
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ export default {
|
|||
},
|
||||
formSubmit() {
|
||||
console.log('form submit child');
|
||||
this.$emit('formSubmit', this.summoner, this.selectedRegion.toLowerCase());
|
||||
this.$emit('formSubmit', this.summoner.split(' ').join(''), this.selectedRegion.toLowerCase());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ export default {
|
|||
// Loop on all matches
|
||||
for (let i = 0; i < matches.length; i++) {
|
||||
const currentMatch = matches[i];
|
||||
const participantId = currentMatch.participantIdentities.find((p) => p.player.accountId === userStats.accountId).participantId
|
||||
const participantId = currentMatch.participantIdentities.find((p) => p.player.currentAccountId === userStats.accountId).participantId
|
||||
|
||||
const teamId = currentMatch.participants[participantId - 1].teamId;
|
||||
const win = currentMatch.teams.find((t) => t.teamId === teamId).win === 'Win'
|
||||
|
|
|
|||
Loading…
Reference in a new issue