diff --git a/src/libs/ReportActionComposeFocusManager.js b/src/libs/ReportActionComposeFocusManager.js index 7f31b17aaa57..025a46ade894 100644 --- a/src/libs/ReportActionComposeFocusManager.js +++ b/src/libs/ReportActionComposeFocusManager.js @@ -47,7 +47,7 @@ function focus() { function clear(isMainComposer = false) { if (isMainComposer) { mainComposerFocusCallback = null; - } else { + } else if (mainComposerFocusCallback) { focusCallback = null; } }