diff --git a/src/components/PlayerSideInfo.vue b/src/components/PlayerSideInfo.vue
index 2666e89..fdb5e6f 100644
--- a/src/components/PlayerSideInfo.vue
+++ b/src/components/PlayerSideInfo.vue
@@ -8,14 +8,14 @@
-
-
-
- {{ mate.player.name }}
-
+
+
+ {{ mate.player.name }}
+
- {{ mate.total }}
-
+ {{ mate.total }}
+
@@ -37,15 +37,15 @@
-
-
-
- {{ mate.player.name }}
-
+
+
+ {{ mate.player.name }}
+
- {{ (mate.win_rate * 100).toFixed(0) }} %
- ({{ mate.total }})
-
+ {{ mate.win_rate ? (mate.win_rate * 100).toFixed(0) : 0 }} %
+ ({{ mate.total }})
+
@@ -67,14 +67,14 @@
-
-
- {{ id[0] }}
-
+
+ {{ id[0] }}
+
-
- {{ id[1] }}
-
-
+
+ {{ id[1] }}
+
+
{{ setDmgGraphWidth() }}
@@ -97,15 +97,15 @@
-
-
-
- {{ FixMapName(map[0]) }}
-
+
+
+ {{ FixMapName(map[0]) }}
+
- {{ (map[1] * 100).toFixed(0) }} %
- ({{ props.player_meta.total_maps[map[0]] }})
-
+ {{ (map[1] * 100).toFixed(0) }} %
+ ({{ props.player_meta.total_maps[map[0]] }})
+
@@ -215,7 +215,18 @@ export default {
}
})
- return {props, data, weaponsLoading, mapsLoading, mostMatesLoading, bestMatesLoading, setDmgGraphWidth, GoToPlayer, constructAvatarUrl, FixMapName}
+ return {
+ props,
+ data,
+ weaponsLoading,
+ mapsLoading,
+ mostMatesLoading,
+ bestMatesLoading,
+ setDmgGraphWidth,
+ GoToPlayer,
+ constructAvatarUrl,
+ FixMapName
+ }
}
}
@@ -245,9 +256,9 @@ export default {
border-radius: 5px;
}
- ol, ul, dl {
- margin-bottom: 0;
- }
+ ol, ul, dl {
+ margin-bottom: 0;
+ }
.best-mate,
.preferred-weapons,