mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
remove unused statements
This commit is contained in:
parent
1ea21a5219
commit
399577bf8d
@ -86,7 +86,6 @@ export default class Account extends React.Component {
|
|||||||
isSelf: false,
|
isSelf: false,
|
||||||
isFollowed: false,
|
isFollowed: false,
|
||||||
|
|
||||||
transitionActive: false,
|
|
||||||
tabActiveKey: "posts",
|
tabActiveKey: "posts",
|
||||||
|
|
||||||
isNotExistent: false,
|
isNotExistent: false,
|
||||||
@ -104,7 +103,6 @@ export default class Account extends React.Component {
|
|||||||
const query = new URLSearchParams(location.search)
|
const query = new URLSearchParams(location.search)
|
||||||
|
|
||||||
const requestedUser = this.props.username ?? location.state?.username ?? query.get("username") ?? token?.username
|
const requestedUser = this.props.username ?? location.state?.username ?? query.get("username") ?? token?.username
|
||||||
const hasAdmin = await User.hasRole("admin")
|
|
||||||
|
|
||||||
let isSelf = false
|
let isSelf = false
|
||||||
let user = null
|
let user = null
|
||||||
@ -144,7 +142,6 @@ export default class Account extends React.Component {
|
|||||||
await this.setState({
|
await this.setState({
|
||||||
isSelf,
|
isSelf,
|
||||||
user,
|
user,
|
||||||
hasAdmin,
|
|
||||||
requestedUser,
|
requestedUser,
|
||||||
isFollowed,
|
isFollowed,
|
||||||
followers,
|
followers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user