diff --git a/src/components/atoms/Button/index.js b/src/components/atoms/Button/index.js index becf36a6..b7fb7cb2 100644 --- a/src/components/atoms/Button/index.js +++ b/src/components/atoms/Button/index.js @@ -51,10 +51,10 @@ const StyledLink = styled(({ disabled, transparent, reverse, palette, height, th const Anchor = styled.a`${styles}` const StyledButton = styled.button`${styles}` -const Button = ({ type, ...props, to, href }) => { - if (to) { +const Button = ({ type, ...props }) => { + if (props.to) { return - } else if (href) { + } else if (props.href) { return } return