diff --git a/src/components/MatchChatHistory.vue b/src/components/MatchChatHistory.vue
index 031c356..d8c3a89 100644
--- a/src/components/MatchChatHistory.vue
+++ b/src/components/MatchChatHistory.vue
@@ -75,7 +75,6 @@ export default {
let arr = []
for (const o of chat) {
for (const p of store.state.matchDetails.stats) {
- console.log(p)
if (o.player === p.player.steamid64) {
const obj = Object.assign({
player: p.player.name,
diff --git a/src/views/Match.vue b/src/views/Match.vue
index 250d4a4..bcb6072 100644
--- a/src/views/Match.vue
+++ b/src/views/Match.vue
@@ -129,9 +129,9 @@
replace>Damage
-
- Chat-History
@@ -255,8 +255,12 @@ export default {
const checkRoute = () => {
if (route.fullPath.split('/')[3]) {
const sub = route.fullPath.split('/')[3]
- if (matchIdPattern.test(props.match_id))
- GoToLink(`/match/${props.match_id}/${sub}`)
+ if (matchIdPattern.test(props.match_id)) {
+ if (store.state.matchDetails.date > 1643410799)
+ GoToLink(`/match/${props.match_id}/${sub}`)
+ else
+ GoToLink(`/match/${props.match_id}`)
+ }
else {
errorHandling(404)
}
@@ -269,25 +273,6 @@ export default {
}
}
- const checkWin = (team) => {
- team -= 1
- if (data.matchDetails.max_rounds === 16) {
- if (data.score[team] === 9)
- return 'text-success'
- else if (data.score[team] === 8)
- return 'text-warning'
- else if (data.score[team] < 8)
- return 'text-danger'
- } else {
- if (data.score[team] === 16)
- return 'text-success'
- else if (data.score[team] === 15)
- return 'text-warning'
- else if (data.score[team] < 15)
- return 'text-danger'
- }
- }
-
const getTeamAvgRank = (team) => {
let arr = []
for (let i = (team - 1) * 5; i < team * 5; i++) {
@@ -361,7 +346,7 @@ export default {
})
return {
- data, DisplayRank, FormatFullDate, FormatDuration, FixMapName, route, pHeight, checkWin, handleDownloadMenu, getTeamAvgRank
+ data, DisplayRank, FormatFullDate, FormatDuration, FixMapName, route, pHeight, handleDownloadMenu, getTeamAvgRank
}
}
}