Skip to content

Commit

Permalink
ensure isOpen is evaluated to a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen committed Apr 3, 2024
1 parent 9f73933 commit 630b608
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class CompletionModal extends Component<
return (
<Modal
onClose={close}
open={isOpen}
open={!!isOpen}
size='large'
// eslint-disable-next-line @typescript-eslint/unbound-method
onKeyDown={isOpen ? this.handleKeypress : undefined}
Expand Down

0 comments on commit 630b608

Please sign in to comment.