Leon пре 2 година
родитељ
комит
7c7a0a7503
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/features/workout/WorkoutStopWatch.tsx

+ 2 - 0
src/features/workout/WorkoutStopWatch.tsx

@@ -409,6 +409,7 @@ export default function Component(props: { targetCount: any, end: Function }) {
             postData()
             return
         }
+        setIsPosting(true)
         setNeedTerminal(true)
         setShowModal(true)
 
@@ -546,6 +547,7 @@ export default function Component(props: { targetCount: any, end: Function }) {
                 showBtns={true}
                 onCancel={() => {
                     resume()
+                    setIsPosting(false)
                     setNeedTerminal(false)
                     setShowModal(false)
                 }} />