From 28edb86c14dcac32922a6f4623ab20b1801bd83b Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 24 Jun 2021 22:48:01 +0000 Subject: [PATCH] Don't render location if there is none for now --- pages/availability/event/[type].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/availability/event/[type].tsx b/pages/availability/event/[type].tsx index 8c203be0..129be9fc 100644 --- a/pages/availability/event/[type].tsx +++ b/pages/availability/event/[type].tsx @@ -242,7 +242,7 @@ export default function EventType(props) {
- {location.hostname}/{props.user.username}/ + {typeof location !== "undefined" ? location.hostname : ""}/{props.user.username}/