Skip to content

Commit

Permalink
fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Sep 6, 2023
1 parent 071c458 commit b628d01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libs/ReportActionComposeFocusManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ function onComposerFocus(callback: FocusCallback, isMainComposer = false) {
* Request focus on the ReportActionComposer
*/
function focus() {
if (!focusCallback) {
mainComposerFocusCallback?.();
if (typeof focusCallback !== 'function') {
if (typeof mainComposerFocusCallback !== 'function'){
return;
}

mainComposerFocusCallback();
return;
}

Expand Down

0 comments on commit b628d01

Please sign in to comment.