Scheduling infrastructure for absolutely everyone.
Bad UX when user wants to set the default Event Type Title #2245 (#2760)
GitStart84f19bb4dfc4
diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsxindex a88cb3c5be8..a275884dee7 100644--- a/apps/web/pages/event-types/[type].tsx+++ b/apps/web/pages/event-types/[type].tsx@@ -914,7 +914,9 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {<h1style={{ fontSize: 22, letterSpacing: "-0.0009em" }}className="inline pl-0 text-gray-900 focus:text-black group-hover:text-gray-500">- {eventType.title}+ {formMethods.getValues("title") && formMethods.getValues("title") !== ""+ ? formMethods.getValues("title")+ : eventType.title}</h1><PencilIcon className="ml-1 -mt-1 inline h-4 w-4 text-gray-700 group-hover:text-gray-500" /></>@@ -929,6 +931,10 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {placeholder={t("quick_chat")}{...formMethods.register("title")}defaultValue={eventType.title}+ onBlur={() => {+ setEditIcon(true);+ formMethods.getValues("title") === "" && formMethods.setValue("title", eventType.title);+ }}/></div>)}