From 09316dac9e072278710a09ab6c5ed16ae17fe6fe Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:46:39 -0300 Subject: [PATCH] fix: isPortableVersion --- src/main/helpers/index.ts | 5 +++-- src/renderer/src/components/sidebar/sidebar-profile.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/helpers/index.ts b/src/main/helpers/index.ts index db5569c8..163fb23a 100644 --- a/src/main/helpers/index.ts +++ b/src/main/helpers/index.ts @@ -26,8 +26,9 @@ export const requestWebPage = async (url: string) => { return window.document; }; -export const isPortableVersion = () => - process.env.PORTABLE_EXECUTABLE_FILE !== null; +export const isPortableVersion = () => { + return !!process.env.PORTABLE_EXECUTABLE_FILE; +}; export const normalizePath = (str: string) => path.posix.normalize(str).replace(/\\/g, "/"); diff --git a/src/renderer/src/components/sidebar/sidebar-profile.tsx b/src/renderer/src/components/sidebar/sidebar-profile.tsx index bae3501a..49e56ab7 100644 --- a/src/renderer/src/components/sidebar/sidebar-profile.tsx +++ b/src/renderer/src/components/sidebar/sidebar-profile.tsx @@ -8,7 +8,7 @@ import { UserFriendModalTab } from "@renderer/pages/shared-modals/user-friend-mo import SteamLogo from "@renderer/assets/steam-logo.svg?react"; import { Avatar } from "../avatar/avatar"; -const LONG_POLLING_INTERVAL = 60_000; +const LONG_POLLING_INTERVAL = 120_000; export function SidebarProfile() { const navigate = useNavigate();