fix filter issue

This commit is contained in:
liangping 2023-12-20 18:47:31 +08:00
parent 6d4ae71b87
commit ff027ff9d0

View File

@ -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
});
}