make codacy-bot happy again!

This commit is contained in:
btzr-io 2018-03-24 10:30:57 -07:00
parent 9dcf3959a3
commit 6ec3a8f8ee

View file

@ -50,10 +50,10 @@ class FileList extends React.PureComponent {
title: fileInfos => title: fileInfos =>
fileInfos.slice().sort((fileInfo1, fileInfo2) => { fileInfos.slice().sort((fileInfo1, fileInfo2) => {
const getFileTitle = fileInfo => { const getFileTitle = fileInfo => {
const { value, metadata, claim_name, name } = fileInfo; const { value, metadata, name, claim_name: claimName } = fileInfo;
if (metadata) { if (metadata) {
// downloaded claim // downloaded claim
return metadata.title || claim_name; return metadata.title || claimName;
} else if (value) { } else if (value) {
// published claim // published claim
const { title } = value.stream.metadata; const { title } = value.stream.metadata;