chore: convert isCreateTeamButtonDisabled to bool (#11473)
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>pull/11344/head
parent
a78a7a1fa0
commit
faf974ca4c
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue