fix undefined error
This commit is contained in:
parent
4fa1391e01
commit
a5eb20d979
@ -41,7 +41,7 @@ export const useGovStore = defineStore('govStore', {
|
|||||||
//filter spam proposals
|
//filter spam proposals
|
||||||
if(proposals?.proposals) {
|
if(proposals?.proposals) {
|
||||||
proposals.proposals = proposals.proposals.filter((item) => {
|
proposals.proposals = proposals.proposals.filter((item) => {
|
||||||
const title = item.content.title || item.title || ""
|
const title = item.content?.title || item.title || ""
|
||||||
return title.toLowerCase().indexOf("airdrop")===-1
|
return title.toLowerCase().indexOf("airdrop")===-1
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user