forked from cerc-io/cosmos-explorer
fix filter issue
This commit is contained in:
parent
6d4ae71b87
commit
ff027ff9d0
@ -41,8 +41,8 @@ export const useGovStore = defineStore('govStore', {
|
||||
//filter spam proposals
|
||||
if(proposals?.proposals) {
|
||||
proposals.proposals = proposals.proposals.filter((item) => {
|
||||
const title = item.content.title || item.title
|
||||
return title && title.toLowerCase().indexOf("airdrop")===-1
|
||||
const title = item.content.title || item.title || ""
|
||||
return title.toLowerCase().indexOf("airdrop")===-1
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user