Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 1, 2022
1 parent eb84c67 commit b0067ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/lib/confirmdialog/ConfirmDialog.js
Expand Up @@ -48,11 +48,9 @@ export const ConfirmDialog = React.memo(
setVisibleState(true);
};

const hide = (result) => {
const hide = (result = 'cancel') => {
setVisibleState(false);
if (result) {
callbackFromProp('onHide', result);
}
callbackFromProp('onHide', result);
};

const confirm = (updatedProps) => {
Expand Down

0 comments on commit b0067ea

Please sign in to comment.