From a5ccc6c8fac395cd3732be90d03eddb835cf9af2 Mon Sep 17 00:00:00 2001
From: mthomas41 <mthomas41@huskers.unl.edu>
Date: Sun, 12 Dec 2021 23:52:09 -0600
Subject: [PATCH] modal will now close when an action has been selected

---
 boost-app/src/features/play/scoreSheet.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/boost-app/src/features/play/scoreSheet.js b/boost-app/src/features/play/scoreSheet.js
index e5df410..97f594c 100644
--- a/boost-app/src/features/play/scoreSheet.js
+++ b/boost-app/src/features/play/scoreSheet.js
@@ -42,17 +42,22 @@ function Move(props) {
       treeName: props.treeName,
       position: props.position,
     }));
-  const makingMainline = () =>
+  const makingMainline = () => {
     dispatch(makeMainLine({
       treeName: props.treeName,
       positionIdentity: props.position,
     }));
+    history.goBack();
+  };
 
-  const deletingLine = () =>
+  const deletingLine = () => {
     dispatch(deleteLine({
       treeName: props.treeName,
       positionIdentity: props.position,
     }));
+    history.goBack();
+  };
+
   const exitModal = () => {
     history.goBack();
   };
-- 
GitLab