- {{ player.name.replace('-', '#') }}
+ {{ nameWithoutTagLine(player.name) }}
{{ player.champion.name }}
@@ -309,6 +309,7 @@ import { mapActions, mapState } from 'vuex'
import DotsLoader from '@/components/Common/DotsLoader.vue'
import Tooltip from '@/components/Common/Tooltip.vue'
import MatchItems from '@/components/Match/MatchItems.vue'
+import { nameWithoutTagLine } from '@/helpers/functions'
export default {
components: {
@@ -397,6 +398,7 @@ export default {
this.displayRunes(player.perks)
},
+ nameWithoutTagLine,
...mapActions('cdragon', ['displayRunes']),
},
}
diff --git a/client/src/components/Match/Match.vue b/client/src/components/Match/Match.vue
index 21110aa..27869ea 100644
--- a/client/src/components/Match/Match.vue
+++ b/client/src/components/Match/Match.vue
@@ -133,22 +133,22 @@
class="ml-4 flex items-center leading-none"
>
{{ ally.name.replace('-', '#') }}
+ >{{ nameWithoutTagLine(ally.name) }}
+
- {{ ally.name.replace('-', '#') }}
+ {{ nameWithoutTagLine(ally.name) }}
{{ data.enemyTeam[index].name.replace('-', '#') }}
+ >{{ nameWithoutTagLine(data.enemyTeam[index].name) }}
+
- {{ data.enemyTeam[index].name.replace('-', '#') }}
+ {{ nameWithoutTagLine(data.enemyTeam[index].name) }}