mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-20 05:15:23 +02:00
Refactor license key deactivation process: update API to retrieve the current user's license key and improve error handling for user validation and missing license keys.
This commit is contained in:
@@ -105,7 +105,7 @@ export function LicenseKeySettings() {
|
||||
description="Are you sure you want to deactivate this license key? This will disable enterprise features."
|
||||
onClick={async () => {
|
||||
try {
|
||||
await deactivateLicenseKey({ licenseKey });
|
||||
await deactivateLicenseKey();
|
||||
await utils.licenseKey.getEnterpriseSettings.invalidate();
|
||||
setIsValid(false);
|
||||
toast.success("License key deactivated");
|
||||
|
||||
Reference in New Issue
Block a user