1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Fix: Codeclimate issue

This commit is contained in:
Akshay 2021-06-01 23:09:07 +02:00
parent c620ff37c7
commit 8a6dd0246a

View File

@ -104,7 +104,8 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
const { name, kindString, flags, signatures, sources, decorators } = property
const { isPublic, isStatic } = flags
const signature = signatures && signatures[0]
const comment = (signature && signature.comment) || property.comment
const comment = signature?.comment || property.comment
const deprecation = (decorators || []).filter(
({ name }) => name === 'deprecated'
)[0] // Assuming deprecated annotation