Jelajahi Sumber

fix: 增加轮询消息无数据报错

ansoni 1 bulan lalu
induk
melakukan
3c13e4d78d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/app/[locale]/providers.tsx

+ 1 - 1
src/app/[locale]/providers.tsx

@@ -199,7 +199,7 @@ const PollingClient = () => {
                 setWallet(user_info);
             }
             //  系统通知
-            if (notices.length !== system_notice?.data.length) {
+            if (notices.length !== system_notice?.data?.length) {
                 setNotices(system_notice?.data || [], system_notice?.summery?.unread || 0);
             }
             if (promotion_count !== system_notice?.summery?.promotion_count) {