Skip to content

Commit

Permalink
Fix market page current user
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Nov 10, 2023
1 parent e76e2af commit 110d60b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/components/pages/nft/NFTMarketPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ import tt from 'counterpart'
import LoadingIndicator from 'app/components/elements/LoadingIndicator'
import NFTTokenItem from 'app/components/elements/nft/NFTTokenItem'
import g from 'app/redux/GlobalReducer'
import session from 'app/utils/session'

class NFTMarketPage extends React.Component {
componentDidMount() {
setTimeout(() => {
this.refetch()
}, 500)
this.refetch()
}

refetch = () => {
const { currentUser } = this.props
const username = currentUser && currentUser.get('username')
this.props.fetchNftMarket(username, '', 0, this.sort, this.sortReversed)
const curName = session.load().currentName
this.props.fetchNftMarket(curName, '', 0, this.sort, this.sortReversed)
}

render() {
Expand Down

0 comments on commit 110d60b

Please sign in to comment.