From d0d01b3897197e7c024789658ef002ddf20b4a79 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 9 Dec 2025 14:12:13 -0800 Subject: [PATCH] Update license check to use `status` instead of `type` --- src-web/components/Settings/SettingsInterface.tsx | 2 +- src-web/components/SettingsDropdown.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-web/components/Settings/SettingsInterface.tsx b/src-web/components/Settings/SettingsInterface.tsx index 5d21d2c0..83f1192c 100644 --- a/src-web/components/Settings/SettingsInterface.tsx +++ b/src-web/components/Settings/SettingsInterface.tsx @@ -199,7 +199,7 @@ function NativeTitlebarSetting({ settings }: { settings: Settings }) { function LicenseSettings({ settings }: { settings: Settings }) { const license = useLicense(); - if (license.check.data?.type !== 'personal_use') { + if (license.check.data?.status !== 'personal_use') { return null; } diff --git a/src-web/components/SettingsDropdown.tsx b/src-web/components/SettingsDropdown.tsx index 5b615218..7e623309 100644 --- a/src-web/components/SettingsDropdown.tsx +++ b/src-web/components/SettingsDropdown.tsx @@ -67,7 +67,7 @@ export function SettingsDropdown() { { label: 'Purchase License', color: 'success', - hidden: check.data == null || check.data.type === 'commercial_use', + hidden: check.data == null || check.data.status === 'active', leftSlot: , onSelect: () => openSettings.mutate('license'), },