(feat) delete cache when user deletes key

This commit is contained in:
ishaan-jaff 2024-02-12 18:45:06 -08:00
parent 6f8a7caee4
commit 287659163c

View file

@ -43,6 +43,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
// Set the key to delete and open the confirmation modal
setKeyToDelete(token);
localStorage.removeItem("userData" + userID)
setIsDeleteModalOpen(true);
};