Skip to content

Commit

Permalink
Update value check onDismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitfield3 committed Dec 8, 2022
1 parent 4241b8c commit 6f4135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HKModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class HKModal extends React.Component<IModalProps, IModalState> {
}
: {}

const dismissElem = onDismiss && (
const dismissElem = !!onDismiss && (
<div
className={classnames('right-1 absolute pointer', { 'top-1': !header })}
onClick={this.handleClose}
Expand Down

0 comments on commit 6f4135e

Please sign in to comment.