From 93d0cdbdc45b81d8365067b6451729652e7d27f8 Mon Sep 17 00:00:00 2001 From: cnachtigall1991 <40701475+cnachtigall1991@users.noreply.github.com> Date: Wed, 13 Oct 2021 19:01:16 +0200 Subject: [PATCH] fixed trackme not working correctly #2 --- src/utils/Utils.js | 1 - src/views/Player.vue | 24 +++++++++++------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/utils/Utils.js b/src/utils/Utils.js index 84a1ead..14964e5 100644 --- a/src/utils/Utils.js +++ b/src/utils/Utils.js @@ -33,7 +33,6 @@ export const TrackMe = async (id64, authcode, sharecode) => { .post(`${process.env.VUE_APP_API_URL}/player/trackme`, `id=${id64}&authcode=${authcode}&sharecode=${sharecode}`) if (res.status === 202) { - statusError = 'Hurray!! Your Matches will now be tracked!' status = res.status } } catch (err) { diff --git a/src/views/Player.vue b/src/views/Player.vue index ed9d0d8..8460c2c 100644 --- a/src/views/Player.vue +++ b/src/views/Player.vue @@ -6,8 +6,8 @@
Player avatar
@@ -35,11 +35,11 @@ {{ data.match_stats.loss }} {{ data.match_stats.tie }} {{ - (data.match_stats.win / (data.match_stats.win + data.match_stats.loss + data.match_stats.tie) * 100).toFixed(2) + (data.match_stats.win / (data.match_stats.win + data.match_stats.loss + data.match_stats.tie) * 100).toFixed(0) }}% {{ - (data.match_stats.tie / (data.match_stats.win + data.match_stats.loss + data.match_stats.tie) * 100).toFixed(2) + (data.match_stats.tie / (data.match_stats.win + data.match_stats.loss + data.match_stats.tie) * 100).toFixed(0) }}% @@ -56,7 +56,7 @@ {{ data.statusError }}
-