filter form.host on FormDescription.

This commit is contained in:
fiatjaf 2018-09-06 00:03:21 +00:00
parent 5279698fee
commit a26bba8caa
1 changed files with 8 additions and 2 deletions

View File

@ -558,8 +558,14 @@ function FormDescription({prefix, form}) {
) : (
<span className="code">/{form.email}</span>
)}{' '}
at <span className="code">{form.host}</span>
{form.sitewide ? 'and all its subpaths.' : null}
{form.host ? (
<>
at <span className="code">{form.host}</span>
{form.sitewide ? ' and all its subpaths.' : null}
</>
) : (
''
)}
{form.hash ? (
<>
<br />