1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

incorrect link type (#215)

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2020-11-05 14:12:45 +02:00 committed by GitHub
parent 35fd83de73
commit b55362f309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export default function MetaSecondary({
}): ReactElement {
return (
<aside className={styles.metaSecondary}>
{metadata?.additionalInformation?.links?.length && (
{metadata?.additionalInformation?.links?.length > 0 && (
<div className={styles.samples}>
<MetaItem
title="Sample Data"

View File

@ -38,7 +38,7 @@ export function transformPublishFormToMetadata(
...AssetModel.additionalInformation,
description,
tags: transformTags(tags),
links: typeof links !== 'string' && links,
links: typeof links !== 'string' ? links : [],
termsAndConditions
}
}