Don't render location if there is none for now

pull/293/head
Alex van Andel 2021-06-24 22:48:01 +00:00
parent ef3274d8f3
commit 28edb86c14
1 changed files with 1 additions and 1 deletions

View File

@ -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}