chore: convert isCreateTeamButtonDisabled to bool (#11473)

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
pull/11344/head
Udit Takkar 2023-09-22 15:06:52 +05:30 committed by GitHub
parent a78a7a1fa0
commit faf974ca4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export function TeamsListing() {
const teams = useMemo(() => data?.filter((m) => m.accepted) || [], [data]); const teams = useMemo(() => data?.filter((m) => m.accepted) || [], [data]);
const invites = useMemo(() => data?.filter((m) => !m.accepted) || [], [data]); const invites = useMemo(() => data?.filter((m) => !m.accepted) || [], [data]);
const isCreateTeamButtonDisabled = user?.organizationId && !user?.organization?.isOrgAdmin; const isCreateTeamButtonDisabled = !!(user?.organizationId && !user?.organization?.isOrgAdmin);
const features = [ const features = [
{ {