Skip to content

Commit d12cd00

Browse files
author
Ajit Kumar
committed
fix(remove license if unkown)
1 parent 22f255a commit d12cd00

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

client/pages/plugin/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ export default async function Plugin({ id: pluginId, section = 'description' })
118118
<span>{commentCount}</span>
119119
</div>
120120
)}
121-
<div className='chip' onclick={() => changeSection('comments')}>
122-
<span className='icon certificate' />
123-
<span>{license}</span>
124-
</div>
121+
{license.toLowerCase() !== 'unknown' && (
122+
<div className='chip' onclick={() => changeSection('comments')}>
123+
<span className='icon certificate' />
124+
<span>{license}</span>
125+
</div>
126+
)}
125127
{votesUp + votesDown > 0 && (
126128
<div className='chip' onclick={() => changeSection('comments')}>
127129
<img src='/thumbs-up.gif' alt='thumbs up' />

0 commit comments

Comments
 (0)