Skip to content

Commit 2972af0

Browse files
author
crzypatchwork
committed
recent sales
1 parent bf8d703 commit 2972af0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
159 KB
Loading

src/pages/search/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,12 @@ export class Search extends Component {
548548
}
549549

550550
componentWillMount = async () => {
551-
this.setState({ select: '○ hDAO' })
552551
let arr = await getRestrictedAddresses()
553-
let res = await fetchHdao(this.state.offset)
554-
res = res.filter(e => !arr.includes(e.creator_id))
555-
this.setState({ feed: _.uniqBy([...this.state.feed, ...(res)], 'creator_id'), hdao: true })
552+
this.setState({ select: 'recent sales' })
553+
let tokens = await fetchSales(this.state.offset)
554+
tokens = tokens.map(e => e.token)
555+
tokens = tokens.filter(e => !arr.includes(e.creator_id))
556+
this.setState({ feed: _.uniqBy([...this.state.feed, ...tokens], 'id') })
556557
//this.latest(999999)
557558
}
558559

0 commit comments

Comments
 (0)