Skip to content

Commit

Permalink
handle null settings open
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Jan 25, 2023
1 parent d994459 commit f0669be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/settings/twitch/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ export default class SettingsModule {

openSettings(e) {
e.preventDefault();
handleOpen(true);
handleOpen?.(true);
}
}
2 changes: 1 addition & 1 deletion src/modules/settings/youtube/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class SettingsModule {
mountedChatDropdownButtonRoot.render(
<DropdownButton
onClick={() => {
handleOpen(true);
handleOpen?.(true);

// close the dropdown menu when the modal is opened
const menuButton = document.querySelector(CHAT_SETTINGS_MENU_BUTTON_SELECTOR);
Expand Down

0 comments on commit f0669be

Please sign in to comment.