From 8eb3a31af41d40c9fabad2cc5ce46b7408aef584 Mon Sep 17 00:00:00 2001 From: Heaust Azure <54670936+Heaust-ops@users.noreply.github.com> Date: Wed, 22 Sep 2021 16:13:08 +0530 Subject: [PATCH] Default to slug when Full Name isn't set (#721) When Full Name isn't set and a new team is created, The part of the now drop-down add new event type (previously button) that's supposed to be personal or non-team appears as an empty div. This commit makes it default to slug / username in such a case. --- pages/event-types/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx index 62451eb4..8f03a4e6 100644 --- a/pages/event-types/index.tsx +++ b/pages/event-types/index.tsx @@ -384,7 +384,7 @@ const CreateNewEventDialog = ({ profiles, canAddEvents }: { profiles: Profile[]; size={6} className="inline mr-2" /> - {profile.name} + {profile.name ? profile.name : profile.slug} ))}