fix undefined error

This commit is contained in:
liangping 2023-12-24 07:37:18 +08:00
parent 4fa1391e01
commit a5eb20d979

View File

@ -41,7 +41,7 @@ export const useGovStore = defineStore('govStore', {
//filter spam proposals
if(proposals?.proposals) {
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
});
}