From 0e396acea427c5361b25bf58f1450d6746b16126 Mon Sep 17 00:00:00 2001 From: Hannah Purcell Date: Mon, 6 Jan 2025 13:38:58 -0500 Subject: [PATCH] fix: Prevent double modals appearing --- assets/src/components/ladderPage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/src/components/ladderPage.tsx b/assets/src/components/ladderPage.tsx index 7da594e5d..5cb1e01d2 100644 --- a/assets/src/components/ladderPage.tsx +++ b/assets/src/components/ladderPage.tsx @@ -242,6 +242,7 @@ const LadderPage = (): ReactElement => { show={showDetourModal} onClose={() => { setShowDetourModal(false) + setRouteForDetour(null) }} /> )} @@ -249,6 +250,7 @@ const LadderPage = (): ReactElement => { { setShowDetourModal(false) + setDetourId(undefined) }} show key={detourId ?? ""}