Update license check to use status instead of type

This commit is contained in:
Gregory Schier
2025-12-09 14:12:13 -08:00
parent fc1e8baa23
commit d0d01b3897
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ function NativeTitlebarSetting({ settings }: { settings: Settings }) {
function LicenseSettings({ settings }: { settings: Settings }) { function LicenseSettings({ settings }: { settings: Settings }) {
const license = useLicense(); const license = useLicense();
if (license.check.data?.type !== 'personal_use') { if (license.check.data?.status !== 'personal_use') {
return null; return null;
} }

View File

@@ -67,7 +67,7 @@ export function SettingsDropdown() {
{ {
label: 'Purchase License', label: 'Purchase License',
color: 'success', color: 'success',
hidden: check.data == null || check.data.type === 'commercial_use', hidden: check.data == null || check.data.status === 'active',
leftSlot: <Icon icon="circle_dollar_sign" />, leftSlot: <Icon icon="circle_dollar_sign" />,
onSelect: () => openSettings.mutate('license'), onSelect: () => openSettings.mutate('license'),
}, },