Better fix to native modals

This commit is contained in:
Paul Frazee 2023-02-27 10:59:19 -06:00
parent be121da134
commit f7d2a8935c

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) {