Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Hide teams button if no teams.

Mike Cao0260ec57ea74
diff --git a/src/components/input/TeamsButton.tsx b/src/components/input/TeamsButton.tsx
index dcb01508d..e3b5a3a8d 100644
--- a/src/components/input/TeamsButton.tsx
+++ b/src/components/input/TeamsButton.tsx
@@ -23,7 +23,7 @@ export function TeamsButton({
close();
};
- if (!result) {
+ if (!result?.count) {
return null;
}