From 6ec3a8f8ee24f19f43c9dabb795e58476f38b432 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Sat, 24 Mar 2018 10:30:57 -0700 Subject: [PATCH] make codacy-bot happy again! --- src/renderer/component/fileList/view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/component/fileList/view.jsx b/src/renderer/component/fileList/view.jsx index a3e6f4726..a18aac95f 100644 --- a/src/renderer/component/fileList/view.jsx +++ b/src/renderer/component/fileList/view.jsx @@ -50,10 +50,10 @@ class FileList extends React.PureComponent { title: fileInfos => fileInfos.slice().sort((fileInfo1, fileInfo2) => { const getFileTitle = fileInfo => { - const { value, metadata, claim_name, name } = fileInfo; + const { value, metadata, name, claim_name: claimName } = fileInfo; if (metadata) { // downloaded claim - return metadata.title || claim_name; + return metadata.title || claimName; } else if (value) { // published claim const { title } = value.stream.metadata;