Correctly handle "" as custom license URL (#271)

* Fix `mod.license.url` check

* Fixes modrinth/knossos#267
This commit is contained in:
venashial authored and GitHub committed 2021-07-11 09:06:06 -07:00
1 parent be3ed7d380
commit 67739e8e39
1 file changed
+1 -4
+1 -4
View File
@@ -222,10 +222,7 @@
<div class="info">
<h4>License</h4>
<p v-tooltip="mod.license.name" class="value ellipsis">
<a
v-if="mod.license.url ? mod.license.url : '#'"
:href="mod.license.url"
>
<a :href="mod.license.url || null">
{{ mod.license.id.toUpperCase() }}</a
>
</p>