From 9e6270ad0efa47f118be4c43c39847b54efea24e Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Fri, 25 May 2018 12:16:17 -0400 Subject: [PATCH] do not display "PRICE"; return null when costInfo is undefined --- src/renderer/component/filePrice/view.jsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/renderer/component/filePrice/view.jsx b/src/renderer/component/filePrice/view.jsx index 090c93126..e40a6c25e 100644 --- a/src/renderer/component/filePrice/view.jsx +++ b/src/renderer/component/filePrice/view.jsx @@ -35,20 +35,14 @@ class FilePrice extends React.PureComponent { render() { const { costInfo, showFullPrice } = this.props; - const isEstimate = costInfo ? !costInfo.includesData : false; - - if (!costInfo) { - return PRICE; - } - - return ( + return costInfo ? ( - ); + ) : null; } }