Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Mar 9, 2024
1 parent fada154 commit db0bb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Popup/shortcut.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export function PopupShortcut ({ open, shortcut, onChange = () => {} }) {
}, [shortcut?.trigger])

React.useEffect(() => {
if (!open || !onChange) {
if (!open) {
return
}

function onKeyDown (e) {
function onKeyDown () {
setTrigger(shortcuts.getPressed())
}

Expand Down

0 comments on commit db0bb79

Please sign in to comment.