Better fix to native modals

zio/stable
Paul Frazee 2023-02-27 10:59:19 -06:00
parent be121da134
commit f7d2a8935c
1 changed files with 2 additions and 4 deletions

View File

@ -30,10 +30,8 @@ export const ModalsContainer = observer(function ModalsContainer() {
store.shell.closeModal()
}
const activeModal = React.useMemo(
() => store.shell.activeModals[store.shell.activeModals.length - 1],
[store.shell.activeModals],
)
const activeModal =
store.shell.activeModals[store.shell.activeModals.length - 1]
useEffect(() => {
if (store.shell.isModalActive) {