From 80a4cf5ca345ee0e9d2de4fc5ba62e6e09f28bd2 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 27 May 2026 17:47:39 +0300 Subject: [PATCH] Hide Leave team button if last member Previously clicking button shows an error toast which is not the best UX --- app/features/team/routes/t.$customUrl.index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/team/routes/t.$customUrl.index.tsx b/app/features/team/routes/t.$customUrl.index.tsx index 658b385c2..f0ee1e756 100644 --- a/app/features/team/routes/t.$customUrl.index.tsx +++ b/app/features/team/routes/t.$customUrl.index.tsx @@ -73,7 +73,7 @@ function ActionButtons() { {isTeamMember({ user, team }) && !isMainTeam ? ( ) : null} - {isTeamMember({ user, team }) ? ( + {isTeamMember({ user, team }) && team.members.length > 1 ? (