From c64aa8673660029d0fb150114307abfe71707fc4 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 28 Feb 2024 09:30:49 -0800 Subject: [PATCH] Fix version check in crash handler --- app/crashReports.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/crashReports.ts b/app/crashReports.ts index 13c61e480344..0a8d211f0ddb 100644 --- a/app/crashReports.ts +++ b/app/crashReports.ts @@ -9,7 +9,7 @@ import z from 'zod'; import type { LoggerType } from '../ts/types/Logging'; import * as Errors from '../ts/types/errors'; -import { isAlpha } from '../ts/util/version'; +import { isProduction } from '../ts/util/version'; import OS from '../ts/util/os/osMain'; const dumpSchema = z @@ -68,7 +68,7 @@ export function setup( showDebugLogWindow: () => Promise, forceEnable = false ): void { - const isEnabled = isAlpha(app.getVersion()) || forceEnable; + const isEnabled = !isProduction(app.getVersion()) || forceEnable; if (isEnabled) { getLogger().info(`crashReporter: ${forceEnable ? 'force ' : ''}enabled`);