From 2bb663f0f6925082087ec08c4a28ab9e661bae96 Mon Sep 17 00:00:00 2001 From: scarlett Date: Tue, 16 Oct 2018 14:15:04 +0100 Subject: [PATCH] satisfy lint --- src/components/favorite_button/favorite_button.js | 2 +- src/components/retweet_button/retweet_button.js | 2 +- src/components/settings/settings.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/favorite_button/favorite_button.js b/src/components/favorite_button/favorite_button.js index 1621341e0c..a2b4cb656b 100644 --- a/src/components/favorite_button/favorite_button.js +++ b/src/components/favorite_button/favorite_button.js @@ -2,7 +2,7 @@ const FavoriteButton = { props: ['status', 'loggedIn'], data () { return { - hidePostStatsLocal: typeof this.$store.state.config.hidePostStats == 'undefined' + hidePostStatsLocal: typeof this.$store.state.config.hidePostStats === 'undefined' ? this.$store.state.instance.hidePostStats : this.$store.state.config.hidePostStats, animated: false diff --git a/src/components/retweet_button/retweet_button.js b/src/components/retweet_button/retweet_button.js index 1527afc845..eb4e4b412d 100644 --- a/src/components/retweet_button/retweet_button.js +++ b/src/components/retweet_button/retweet_button.js @@ -2,7 +2,7 @@ const RetweetButton = { props: ['status', 'loggedIn', 'visibility'], data () { return { - hidePostStatsLocal: typeof this.$store.state.config.hidePostStats == 'undefined' + hidePostStatsLocal: typeof this.$store.state.config.hidePostStats === 'undefined' ? this.$store.state.instance.hidePostStats : this.$store.state.config.hidePostStats, animated: false diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index fe8a2d9ea7..67110841c7 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -16,11 +16,11 @@ const settings = { hidePostStatsLocal: typeof user.hidePostStats === 'undefined' ? instance.hidePostStats : user.hidePostStats, - hidePostStatsDefault : this.$t('settings.values.' + instance.hidePostStats), + hidePostStatsDefault: this.$t('settings.values.' + instance.hidePostStats), hideUserStatsLocal: typeof user.hideUserStats === 'undefined' ? instance.hideUserStats : user.hideUserStats, - hideUserStatsDefault : this.$t('settings.values.' + instance.hideUserStats), + hideUserStatsDefault: this.$t('settings.values.' + instance.hideUserStats), notificationVisibilityLocal: user.notificationVisibility, replyVisibilityLocal: user.replyVisibility, loopVideoLocal: user.loopVideo,