Skip to content

Commit

Permalink
Update src/pages/home/report/ReportActionCompose/ComposerWithSuggesti…
Browse files Browse the repository at this point in the history
…ons.js

Co-authored-by: Arkadiusz Chrabąszczewski <Arkadiuszchr@gmail.com>
  • Loading branch information
b4s36t4 and ArekChr authored Sep 11, 2023
1 parent 67fd84e commit 29814a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function ComposerWithSuggestions({
* @returns {Boolean}
*/
const checkComposerVisibility = useCallback(() => {
// Checking weather the screen is focused or not, helps avoiding `modal.isVisible` false when popups are closed even modal is opened
// Checking whether the screen is focused or not, helps avoid `modal.isVisible` false when popups are closed, even if the modal is opened.
const isComposerCoveredUp = !isFocused || EmojiPickerActions.isEmojiPickerVisible() || isMenuVisible || modal.isVisible || modal.willAlertModalBecomeVisible;
return !isComposerCoveredUp;
}, [isMenuVisible, modal, isFocused]);
Expand Down

0 comments on commit 29814a9

Please sign in to comment.