summaryrefslogtreecommitdiff
path: root/src/PartnerEventStorePatch.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PartnerEventStorePatch.tsx')
-rw-r--r--src/PartnerEventStorePatch.tsx9
1 files changed, 5 insertions, 4 deletions
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);
}