From ff027ff9d0a8fe989ba8d5aa67f6b5e74b8b9edf Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 20 Dec 2023 18:47:31 +0800 Subject: [PATCH] fix filter issue --- src/stores/useGovStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/useGovStore.ts b/src/stores/useGovStore.ts index db850065..c9a57a56 100644 --- a/src/stores/useGovStore.ts +++ b/src/stores/useGovStore.ts @@ -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 }); }