fix: vite-env.d.ts for import.meta.env types, fix isOnline boolean cast
This commit is contained in:
@@ -19,7 +19,7 @@ export default function ChatHeader({ chat, onBack, onRefresh, onShowInfo }: Prop
|
||||
|
||||
const typing = typingUsers[chat.id] || [];
|
||||
const isPrivate = chat.type === 'private';
|
||||
const isOnline = isPrivate && chat.privateUserId && onlineUsers.has(chat.privateUserId);
|
||||
const isOnline = !!(isPrivate && chat.privateUserId && onlineUsers.has(chat.privateUserId));
|
||||
|
||||
let subtitle = '';
|
||||
if (typing.length > 0) {
|
||||
|
||||
1
frontend/src/vite-env.d.ts
vendored
Normal file
1
frontend/src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user