diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.js b/src/components/mobile_post_status_button/mobile_post_status_button.js index d137331c9..b42af3fa0 100644 --- a/src/components/mobile_post_status_button/mobile_post_status_button.js +++ b/src/components/mobile_post_status_button/mobile_post_status_button.js @@ -34,9 +34,6 @@ const MobilePostStatusButton = { window.removeEventListener('resize', this.handleOSK) }, computed: { - isLoggedIn() { - return useUsersStore().loggedIn - }, isHidden() { if (HIDDEN_FOR_PAGES.has(this.$route.name)) { return true @@ -52,6 +49,7 @@ const MobilePostStatusButton = { autohideFloatingPostButton() { return !!useMergedConfigStore().mergedConfig.autohideFloatingPostButton }, + ...mapState(useUsersStore, ['loggedIn']), }, watch: { autohideFloatingPostButton: function (isEnabled) { diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.vue b/src/components/mobile_post_status_button/mobile_post_status_button.vue index 32079c298..8b11f12d4 100644 --- a/src/components/mobile_post_status_button/mobile_post_status_button.vue +++ b/src/components/mobile_post_status_button/mobile_post_status_button.vue @@ -1,6 +1,6 @@