From 1cf5a0b0fcd6bd44175eb8677f9f43fe22ffed08 Mon Sep 17 00:00:00 2001
From: Ansh <anshnanda10@gmail.com>
Date: Tue, 19 Dec 2023 03:56:43 +0530
Subject: Fix 2231 Modal overlap on double modal open (#2239)

* add same multiple snapPoints to Confirm modal

* snapToIndex instead of confirm
---
 src/view/com/modals/Modal.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/com/modals/Modal.tsx')

diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx
index 90629d33d..2aac20dac 100644
--- a/src/view/com/modals/Modal.tsx
+++ b/src/view/com/modals/Modal.tsx
@@ -82,7 +82,7 @@ export function ModalsContainer() {
 
   useEffect(() => {
     if (isModalActive) {
-      bottomSheetRef.current?.expand()
+      bottomSheetRef.current?.snapToIndex(0)
     } else {
       bottomSheetRef.current?.close()
     }
-- 
cgit 1.4.1

