Skip to content

Commit

Permalink
fix: simplify code only deleting the else
Browse files Browse the repository at this point in the history
  • Loading branch information
imOscarCrespo committed Aug 27, 2019
1 parent 70935a3 commit 7029c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/botonic-react/src/components/button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const Button = props => {
else if (props.payload) sendPayload(props.payload)
else if (props.url) {
window.open(props.url)
props.onClick()
} else if (props.onClick) props.onClick()
}
if (props.onClick) props.onClick()
}

const renderBrowser = () => {
Expand Down

0 comments on commit 7029c3a

Please sign in to comment.