This commit is contained in:
Ishaan Jaff 2025-03-14 09:18:37 -07:00
parent 43b7460968
commit 558c37ca06

View file

@ -274,11 +274,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
message.success("API Key Created");
form.resetFields();
localStorage.removeItem("userData" + userID);
// We don't need to call refresh anymore since we're directly updating the state
// if (window.refreshKeysList) {
// window.refreshKeysList();
// }
} catch (error) {
console.log("error in create key:", error);
message.error(`Error creating the key: ${error}`);