Browse Source

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

ansoni 1 tháng trước cách đây
mục cha
commit
3c13e4d78d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {