From 65fb8254f5a61a67f0977e3e805d6f1feb19c7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 11 Apr 2021 12:08:58 +0200 Subject: [PATCH] Fix linting errors in home component --- web/frontend/src/components/Home.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/frontend/src/components/Home.vue b/web/frontend/src/components/Home.vue index c537a4d..268fce2 100644 --- a/web/frontend/src/components/Home.vue +++ b/web/frontend/src/components/Home.vue @@ -56,9 +56,13 @@ interface TotalStatsResult { @Component export default class Home extends Vue { totalLoginAttempts?: number; + uniquePasswords?: number; + uniqueUsernames?: number; + uniqueIPs?: number; + uniqueCountries?: number; ready = false; @@ -69,21 +73,21 @@ export default class Home extends Vue { .get(url) .then((resp) => { this.totalLoginAttempts = resp.data.find( - (e) => e.name == 'TotalLoginAttempts', + (e) => e.name === 'TotalLoginAttempts', )?.count; this.uniquePasswords = resp.data.find( - (e) => e.name == 'UniquePasswords', + (e) => e.name === 'UniquePasswords', )?.count; this.uniqueUsernames = resp.data.find( - (e) => e.name == 'UniqueUsernames', + (e) => e.name === 'UniqueUsernames', )?.count; - this.uniqueIPs = resp.data.find((e) => e.name == 'UniqueIPs')?.count; + this.uniqueIPs = resp.data.find((e) => e.name === 'UniqueIPs')?.count; this.uniqueCountries = resp.data.find( - (e) => e.name == 'UniqueCountries', + (e) => e.name === 'UniqueCountries', )?.count; this.ready = true;