forked from cerc-io/cosmos-explorer
filter spam
This commit is contained in:
parent
cb756ea204
commit
ca59e3d586
@ -37,6 +37,12 @@ export const useGovStore = defineStore('govStore', {
|
|||||||
const proposals = reactive(
|
const proposals = reactive(
|
||||||
await this.blockchain.rpc?.getGovProposals(status, pagination)
|
await this.blockchain.rpc?.getGovProposals(status, pagination)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//filter spam proposals
|
||||||
|
if(proposals?.proposals) {
|
||||||
|
proposals.proposals = proposals.proposals.filter((item) => item.content.title && item.content.title.toLowerCase().indexOf("airdrop")===-1);
|
||||||
|
}
|
||||||
|
|
||||||
if (status === '2') {
|
if (status === '2') {
|
||||||
proposals?.proposals?.forEach((item) => {
|
proposals?.proposals?.forEach((item) => {
|
||||||
this.fetchTally(item.proposal_id).then((res) => {
|
this.fetchTally(item.proposal_id).then((res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user