Commit 3d9ccb82 authored by Webb, Jake's avatar Webb, Jake
Browse files

disable replay button when no progress has been made

parent 94c4abe1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -287,7 +287,13 @@ function Simulation() {
            data-tooltip-delay-show={750}
          />
        </button>
        <button onClick={onReplayUpdate}>
        <button
          onClick={onReplayUpdate}
          disabled={
            (replayStatus === "pause" || replayStatus === "stop") &&
            maxTimestamp === 0
          }
        >
          {replayStatus === "stop" || replayStatus === "pause" ? (
            <PlayIcon
              data-tooltip-id="play-button"