Better fix to native modals

This commit is contained in:
Paul Frazee
2023-02-27 10:59:19 -06:00
parent 9b78718276
commit dd00191782
+2 -4
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) {