From aac02a2def27a67cc4ec4bab274c6a91d245e8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Mon, 19 Jun 2023 18:55:14 -0600 Subject: [PATCH] hide context menu if anonymous user clicks on it --- src/libs/actions/Session/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/actions/Session/index.js b/src/libs/actions/Session/index.js index f59cf5972c9e..2941c9ad831c 100644 --- a/src/libs/actions/Session/index.js +++ b/src/libs/actions/Session/index.js @@ -24,6 +24,7 @@ import ROUTES from '../../../ROUTES'; import * as ErrorUtils from '../../ErrorUtils'; import * as ReportUtils from '../../ReportUtils'; import * as Report from '../Report'; +import {hideContextMenu} from '../../../pages/home/report/ContextMenu/ReportActionContextMenu'; let authTokenType = ''; Onyx.connect({ @@ -89,6 +90,7 @@ function isAnonymousUser() { } function signOutAndRedirectToSignIn() { + hideContextMenu(false); signOut(); redirectToSignIn(); Log.info('Redirecting to Sign In because signOut() was called');