diff --git a/client/src/components/SearchForm.vue b/client/src/components/SearchForm.vue index 3b05df8..cf2d0f0 100644 --- a/client/src/components/SearchForm.vue +++ b/client/src/components/SearchForm.vue @@ -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()); } } }; diff --git a/client/src/views/Summoner.vue b/client/src/views/Summoner.vue index fb59895..6d45ada 100644 --- a/client/src/views/Summoner.vue +++ b/client/src/views/Summoner.vue @@ -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'