(feat) clear UI Cache when user creates key

This commit is contained in:
ishaan-jaff 2024-02-12 18:44:14 -08:00
parent c7f54f1424
commit 5776b667fb

View file

@ -50,6 +50,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
setApiKey(response["key"]);
message.success("API Key Created");
form.resetFields();
localStorage.removeItem("userData" + userID)
} catch (error) {
console.error("Error creating the key:", error);
}