From d3707f30e30bb717e95b27cc83a1121815b475b5 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 10 Nov 2022 16:30:14 -0600
Subject: Implement scene invitation and membership controls

---
 src/view/com/util/Link.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/view/com/util/Link.tsx')

diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 08536b0c3..84060ac01 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -16,7 +16,10 @@ export const Link = observer(function Link({
   children?: React.ReactNode
 }) {
   const store = useStores()
-  const onPress = () => store.nav.navigate(href)
+  const onPress = () => {
+    store.shell.closeModal() // close any active modals
+    store.nav.navigate(href)
+  }
   const onLongPress = () => {
     store.shell.openModal(new LinkActionsModel(href, title || href))
   }
-- 
cgit 1.4.1

