From 4cf81648dc656c35e846e74c88aa4d9addb7f5e4 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Sat, 20 May 2023 15:11:48 +0300 Subject: [PATCH] Fixed default value resolution in `ModrinthUploader` --- src/platforms/modrinth/modrinth-uploader.ts | 13 +++++++------ src/platforms/modrinth/modrinth-version.ts | 12 +++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/platforms/modrinth/modrinth-uploader.ts b/src/platforms/modrinth/modrinth-uploader.ts index a6badf7..3ece999 100644 --- a/src/platforms/modrinth/modrinth-uploader.ts +++ b/src/platforms/modrinth/modrinth-uploader.ts @@ -51,7 +51,7 @@ export class ModrinthUploader extends GenericPlatformUploader { const api = new ModrinthApiClient({ token: request.token.unwrap() }); - const unfeatureMode = request.unfeatureMode ?? request.featured ? ModrinthUnfeatureMode.SUBSET : ModrinthUnfeatureMode.NONE; + const unfeatureMode = request.unfeatureMode ?? (request.featured ? ModrinthUnfeatureMode.SUBSET : ModrinthUnfeatureMode.NONE); const project = await this.getProject(request.id, api); const version = await this.createVersion(request, project, api); @@ -97,15 +97,16 @@ export class ModrinthUploader extends GenericPlatformUploader