Skip to content

Commit 392e3c4

Browse files
committed
minor update
1 parent 32c9f24 commit 392e3c4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -237,18 +237,12 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef<Repor
237237

238238
// After we have called the action, reset it.
239239
onPopoverShow.current = () => {};
240-
};
241-
242-
useEffect(() => {
243-
if (!isPopoverVisible) {
244-
return;
245-
}
246240

247241
// After the context menu opening animation ends reset isContextMenuOpening.
248242
setTimeout(() => {
249243
setIsContextMenuOpening(false);
250244
}, CONST.ANIMATED_TRANSITION);
251-
}, [isPopoverVisible]);
245+
};
252246

253247
/** Run the callback and return a noop function to reset it */
254248
const runAndResetCallback = (callback: () => void) => {

0 commit comments

Comments
 (0)