Check if connectedLink is empty

This commit is contained in:
Melon 2023-09-22 02:25:09 +01:00
parent 90431f79c6
commit 08dd364a79
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -133,7 +133,7 @@
<ul class="connected-accounts">
{{range .Connections}}
<li>
<a {{if .}}href="{{connectedLink .}}"{{end}} target="_blank" data-is-revoked="{{.Revoked}}">
<a {{if connectedLink .}}href="{{connectedLink .}}"{{end}} target="_blank" data-is-revoked="{{.Revoked}}">
<img src="/discord/assets/icon/{{.Type}}.svg" alt="Icon for {{.Type}}"/>
<span>{{.Name}}</span>
</a>