Skip to content

Scheduling infrastructure for absolutely everyone.

Don't render location if there is none for now

Alex van Andel28edb86c14dc
diff --git a/pages/availability/event/[type].tsx b/pages/availability/event/[type].tsx
index 8c203be008b..129be9fceac 100644
--- a/pages/availability/event/[type].tsx
+++ b/pages/availability/event/[type].tsx
@@ -242,7 +242,7 @@ export default function EventType(props) {
<div className="mt-1">
<div className="flex rounded-md shadow-sm">
<span className="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
- {location.hostname}/{props.user.username}/
+ {typeof location !== "undefined" ? location.hostname : ""}/{props.user.username}/
</span>
<input
ref={slugRef}