Skip to content

Commit

Permalink
chore: simplify renderActions() (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Jul 20, 2019
1 parent 17128d5 commit cb3e498
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/dom/renderers/renderActions.js
Expand Up @@ -8,9 +8,7 @@ export const renderActions = (instance, params) => {

// Actions (buttons) wrapper
if (!params.showConfirmButton && !params.showCancelButton) {
dom.hide(actions)
} else {
dom.show(actions)
return dom.hide(actions)
}

// Custom class
Expand Down

0 comments on commit cb3e498

Please sign in to comment.