fix: hide DM button when logged out

This commit is contained in:
lezi-fun committed 2026-08-10 10:21:26 +08:00
1 parent 1486d95f89
commit 5d90e5c415
1 file changed
+2
+2
View File
@@ -24,6 +24,8 @@ export function DMButton() {
return () => clearInterval(t);
}, [currentUser]);
if (!currentUser) return null; // 未登录不显示私信按钮
return (
<button
className="nav-icon-btn"