diff --git a/src/renderer/component/userHistory/view.jsx b/src/renderer/component/userHistory/view.jsx index 55b040d74..bf8ffc862 100644 --- a/src/renderer/component/userHistory/view.jsx +++ b/src/renderer/component/userHistory/view.jsx @@ -99,7 +99,8 @@ class UserHistoryPage extends React.PureComponent { const allSelected = Object.keys(itemsSelected).length === history.length; const selectHandler = allSelected ? this.unselectAll : this.selectAll; - return ( + + return history.length ? (
{Object.keys(itemsSelected).length ? ( @@ -109,7 +110,6 @@ class UserHistoryPage extends React.PureComponent { {/* Using an empty span so spacing stays the same if the button isn't rendered */} )} -
+ ); } }