small cleanup
This commit is contained in:
parent
634ad0df23
commit
353f07a9ea
1 changed files with 2 additions and 4 deletions
|
|
@ -28,11 +28,8 @@ const UserReportingModal = {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
isLoggedIn() {
|
||||
return !!useUsersStore().currentUser
|
||||
},
|
||||
isOpen() {
|
||||
return this.isLoggedIn && this.reportModal.activated
|
||||
return this.loggedIn && this.reportModal.activated
|
||||
},
|
||||
userId() {
|
||||
return this.reportModal.userId
|
||||
|
|
@ -47,6 +44,7 @@ const UserReportingModal = {
|
|||
)
|
||||
},
|
||||
...mapState(useReportsStore, ['reportModal']),
|
||||
...mapState(useUsersStore, ['loggedIn']),
|
||||
},
|
||||
watch: {
|
||||
userId: 'resetState',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue