From ba7a86099b321f378b9d18ea025af9730642d8bf Mon Sep 17 00:00:00 2001
From: Victor Borges <victor1882@outlook.com>
Date: Sat, 3 May 2025 13:57:43 -0300
Subject: refactor

---
 src/PartnerEventStorePatch.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'src/PartnerEventStorePatch.tsx')

diff --git a/src/PartnerEventStorePatch.tsx b/src/PartnerEventStorePatch.tsx
index 3aa2a94..75b8ed2 100644
--- a/src/PartnerEventStorePatch.tsx
+++ b/src/PartnerEventStorePatch.tsx
@@ -297,8 +297,9 @@ async function* fetchReleases() {
 }
 
 function isBetaOrPreviewChannel(tags: SteamTags): boolean {
-  return (tags?.require_tags
-      && (tags?.require_tags?.includes(SteamOSChannel.Beta)
-        || tags?.require_tags?.includes(SteamOSChannel.Preview)))
-    ?? false;
+  if (!tags?.require_tags)
+    return false;
+
+  return tags.require_tags.includes(SteamOSChannel.Beta)
+    || tags.require_tags.includes(SteamOSChannel.Preview);
 }
-- 
cgit v1.2.3

