fix: vite-env.d.ts for import.meta.env types, fix isOnline boolean cast

This commit is contained in:
Ai
2026-05-22 11:19:36 +03:00
parent 567e5fd14a
commit 7f80e0310c
2 changed files with 2 additions and 1 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />