diff --git a/apps/web/ee/components/apiKeys/ApiKeyDialogForm.tsx b/apps/web/ee/components/apiKeys/ApiKeyDialogForm.tsx index bc12e6fc1f..b3b168bff6 100644 --- a/apps/web/ee/components/apiKeys/ApiKeyDialogForm.tsx +++ b/apps/web/ee/components/apiKeys/ApiKeyDialogForm.tsx @@ -33,9 +33,9 @@ export default function ApiKeyDialogForm(props: { }, } = props; - const [newApiKey, setNewApiKey] = useState(""); + const [apiKey, setApiKey] = useState(""); const [successfulNewApiKeyModal, setSuccessfulNewApiKeyModal] = useState(false); - const [newApiKeyDetails, setNewApiKeyDetails] = useState({ + const [apiKeyDetails, setApiKeyDetails] = useState({ id: "", hashedKey: "", expiresAt: null as Date | null, @@ -54,7 +54,7 @@ export default function ApiKeyDialogForm(props: { <>
- {newApiKey}
+ {apiKey}