fix: removed void and converted conditional to boolean

This commit is contained in:
Moyasee
2025-11-02 18:47:26 +02:00
parent 87d35da9fc
commit 6f6b7d49ac
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ export const loadState = async () => {
void syncDownloadSourcesFromApi();
// Check for new download options on startup
void DownloadSourcesChecker.checkForChanges();
DownloadSourcesChecker.checkForChanges();
// WSClient.connect();
});

View File

@@ -81,7 +81,7 @@ export function SidebarGameItem({
{getGameTitle(game)}
</span>
{game.newDownloadOptionsCount && game.newDownloadOptionsCount > 0 && (
{(game.newDownloadOptionsCount ?? 0) > 0 && (
<span className="sidebar__game-badge">
<div className="sidebar__game-badge-plus">+</div>
<div className="sidebar__game-badge-count">