From 75a6d3d2ea0956bffef78ec7e9e7104bc8d88ac9 Mon Sep 17 00:00:00 2001 From: Jimmy Somsanith Date: Fri, 28 Jun 2019 22:58:43 +0200 Subject: [PATCH] Remove unnecessary if --- src/components/Button.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/Button.js b/src/components/Button.js index 859ac9d5..1c68d13c 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -308,10 +308,6 @@ const StyledButton = styled.button` const ButtonLink = StyledButton.withComponent('a'); const applyStyle = ButtonWrapper => { - if (!ButtonWrapper) { - return null; - } - return ( ButtonWrapper && StyledButton.withComponent(({ containsIcon, isLoading, isUnclickable, ...rest }) => (