From 30f427cb3bdc8adbe5c225dc278bda1d33178457 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 4 Jul 2023 18:31:40 +0800 Subject: [PATCH] refactor(console): update comments --- packages/console/src/hooks/use-user-default-tenant-id.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/console/src/hooks/use-user-default-tenant-id.ts b/packages/console/src/hooks/use-user-default-tenant-id.ts index 4d3bc433e..1d436cf7b 100644 --- a/packages/console/src/hooks/use-user-default-tenant-id.ts +++ b/packages/console/src/hooks/use-user-default-tenant-id.ts @@ -13,7 +13,6 @@ const key = 'defaultTenantId'; * * - By default, the default tenant ID is empty, which means the first tenant is the default tenant. * - If the default tenant ID is not available to the user anymore, it semantically equals to the first tenant ID. - * - If the user manually navigates to a tenant, the default tenant ID will be set to the target tenant ID. */ const useUserDefaultTenantId = () => { const { data, update: updateMeCustomData } = useMeCustomData(); @@ -41,12 +40,7 @@ const useUserDefaultTenantId = () => { return { defaultTenantId, - /** - * Update the default tenant ID to the current tenant ID if: - * - * 1. The current tenant ID is not empty. - * 2. The default tenant ID does not equal to the current tenant ID. - */ + /** Update the default tenant ID to the current tenant ID. */ updateIfNeeded, }; };